Skip to content

Instantly share code, notes, and snippets.

@benawad
Created October 31, 2014 18:03
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 benawad/83dfe18795a3b4496be4 to your computer and use it in GitHub Desktop.
Save benawad/83dfe18795a3b4496be4 to your computer and use it in GitHub Desktop.
Euler problem 25
f1 = 1
f2 = 1
term = 2
while True:
temp = f1
f1 = f2
f2 = temp + f2
term += 1
if(len(str(f2)) == 1000):
print term , " : " , f2
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment