Skip to content

Instantly share code, notes, and snippets.

@Starefossen
Last active December 14, 2015 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Starefossen/5132610 to your computer and use it in GitHub Desktop.
Save Starefossen/5132610 to your computer and use it in GitHub Desktop.
To the infibity and beyond..
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