Created
May 31, 2011 19:46
-
-
Save jhuttner/1001132 to your computer and use it in GitHub Desktop.
Drain the battery on your computer, via the Command Line.
This file contains 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
#!/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