[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: A small programming challenge

Subject: Re: A small programming challenge
From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
Date: Wed, 22 Jun 2005 03:08:14 -0700 (PDT)
da vinci code 10 digit
Hi Dimitre,
  I am keen to solve this problem. But I have a doubt
.. Do you have a algorithm for this(If yes, please
share it), which I'll implement with XSLT 2.0 ? Or we
have to also invent a algorithm for this..

Regards,
Mukul

--- Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote:

> Hi,
> 
> I just started reading the book "The Da Vinci code"
> and this resulted
> in having some fun with XSLT 2.0, Saxon 8.4 and
> Saxon.NET.
> 
> Here's the problem:
> 
>     Find the first 10-digit prime in consecutive
> digits of F-3000						
>  	
>     Where F-N is the Nth Fibonacci number.
>     Here are the elements of the sequence of
> Fibonacci numbers from 0 to 11:
>                                                     
>                        
>     Element:    1, 1, 2, 3, 5, 8, 13, 21, 34, 55,
> 89, 144                   
>     Index:         0, 1, 2, 3, 4, 5,   6,   7,  8,  
> 9,   10,  11
>                                                     
>                        
> 
> It is *very important* to note that the first "1" in
> the sequence has
> index "0", so that everyone will mean the same thing
> by F-3000
>  
> When you have the answer, please, let me know:
> 
>   1. The 10 digit prime number
>   2. The xslt code
>   3. The stylesheet execution time.
>   4. Your computer -- CPU speed and RAM
>   5. Whether or not you used any specific extension
> functions.
>  
> 
> Cheers,
> Dimitre Novatchev.
> 
> 



		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.