The Goal: Make a program that calculates the highest prime number in the least amount of time.
Languages you may use: C++, C, NASM, AS2/AS3, Python, BASH, HTML/JS/HTML5 (will be run locally), Java, Perl, Ruby.
YOU MAY NOT USE C#, VBS, F#, Visual C++ or any language that does not work on a Mac.
All programs will be given exactly 60 seconds to calculate the highest prime number you can STARTING AT 2.
You MUST write an ALGORITHM, not just print a list of primes from a web site.
C++ programs should be gcc compatible. Any flash files will be run in Flash Player 10 debugger. HTML5/JS will be run in Chrome. Python, Perl, and Ruby will be run in the Apple Terminal.
What will happen:
I will time exactly 60 seconds while running the program. The specs of my computer are as follows:
2.4GHz Intel Core 2 Duo
4 GB of ram
No other programs will be open other than the one in use and the file manager.