Skip to content

Instantly share code, notes, and snippets.

@jhuttner
Created May 31, 2011 19:46
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 jhuttner/1001132 to your computer and use it in GitHub Desktop.
Save jhuttner/1001132 to your computer and use it in GitHub Desktop.
Drain the battery on your computer, via the Command Line.
#!/usr/local/bin/python
# If you have an n-core machine, open n terminals and run this script in each one.
def fib(n):
if n == 1 or n == 0:
return 1
else:
return fib(n-1) + fib(n-2)
print fib(60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment