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 |
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 |
You must be logged in to post a comment.