PDA

View Full Version : Project Euler



.Maleficus.
05-21-2008, 07:51 AM
http://www.projecteuler.net

This is for the programmers of the board. Project Euler is a series of ridiculous math problems that (generally) need programs to solve. I decided to start learning Python and I found a link to this on a different site, and holy crap is this the best way to learn a language. I've been at this for the last 2 days (I've only solved 6 because my limited highschool math is keeping me down) but it's really sweet coming up with algorithms to do this.

Each problem was designed for a modern computer to take < 1 minute to complete. For example, here's one of my Python solutions (Problem 1).

> time python problem1.py
233168

real 0m0.006s
user 0m0.004s
sys 0m0.000s
Pretty cool stuff. I've solved 1, 2, 3, 6, 8 and 11 so far. Finally I have something to do during my bleed-your-eyes-out boring VB.NET class!

Pointy_Stick
05-21-2008, 10:33 AM
This is pretty cool. I'm learning Python for my uni course and I'm really enjoying it. This is exactly the kind of thing I've been looking for on the internet to test and improve myself.

+rep for a great find.