Last active
December 14, 2015 18:49
-
-
Save Starefossen/5132610 to your computer and use it in GitHub Desktop.
To the infibity and beyond..
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
b = 0 | |
a = 1 | |
i = 2 | |
j = 0 | |
t = (139583862445/1000000) | |
while(i < 1024): | |
tmp = a + b | |
b = a | |
a = int(str(tmp)[-10:]) | |
if i % 1000000 == 0: | |
j = j+1 | |
print (100/t)*j | |
i = i+1 | |
print i, str(a + b)[-10:] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment