PCPOTATO
Navigation

Home
About
Contact
Resume

Projects

None yet

Categories

General
Interesting
Programming

Archives

August 2008
July 2008
June 2008
May 2008
April 2008
Project Euler #25 July 14th, 2008

First Fibonacci number to reach 1000 digits you say? Well you can find out with this:

1
2
3
4
5
6
7
8
9
10
previous = 1
current = 2
j = 3
while(len(str(current)) < 1000):
    temp = previous
    previous = current
    current = current + temp
    j = j + 1
 
print j
Leave a Reply

You must be logged in to post a comment.

Domains


Links


Presence


Meta

Log in