This all started when me and Chili5 were talking about competition, they have to type code that will run in under 2.5 seconds!! On a quad-core processor :D Then he mentioned counting to a million on a Python script, it took forever! I did it and it was fairly quick, it was fun :D
Which then leads me to this thread.
Share your FUN CODE!! I want something new and fun to see hehe. Here is how to count to a million in Python.
count = 0 while count <= 1000000: print count count = count + 1
I think most fun code could be written as while loops, but use whatever you wish! Something that isn't as fun, but interesting. Is 100 ^ 1000000 in Python :D Took about 10 - 20 minutes and still get to see the full answer! Too many zeros hehe.
Here's how.
print 100 ** 1000000
Now let's see your fun and interesting code.
NOTE: Any language, anything you wish!


Sign In
Create Account


Back to top










