Advertisement
Guest User

Big Fib

a guest
Feb 5th, 2013
621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. #!/usr/bin/python
  2. def main():
  3.     n = 150000
  4.     fibonacci(n)
  5.  
  6. def fibonacci(n):
  7.     a, b = 1, 1
  8.     for i in range(0, n):
  9.         if i == 149999:
  10.             print i, "  -  ", a, "\n"
  11.         a, b = b, a+b
  12.  
  13. if __name__ == '__main__':
  14.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement