Movies: No Country for Old Men | Main | Movies: Enchanted

## March 14, 2008

### Project Euler

Has anyone done Project Euler? It is a quite interesting set of math/programming problems. Really think would be a great way to learn a new programming language but I am just doing them in my primary language, Perl, at the moment. I have done 51 problems so far including all of the first 50 except for #46 which I am kind of stuck on. If by any chance you have done #46 (or go ahead and do it after reading this), can you drop me a note? I'd really like to know the magnitude of the answer.

I've been really enjoying solving these. Haven't worried about speed or elegance and just hacking code to get an answer although in a few cases I had to completely rethink/optimize my approach for one reason or another (#11 and #26 in particular). Think some of this will get into math that is somewhat over my head so not sure whether I will keep trying to solve them all and how far into it I will go. Need another 15 or so to make the top 1000.

By the way, I mentioned this to a friend as a good way to learn a new language and we both agreed but of course these are all mathematical in nature and there is a lot of ground they wouldn't cover. Does anyone know of a site with like N (being 10 or 20 or something I expect) problems to do (probably starting with "Hello World" and then getting much more involved fast) after which one should have a basic understanding of the main elements of a language?

Posted by aarondf at March 14, 2008 05:36 PM

## Comments

Well, turns out I had the definition of "odd composite" wrong and so missed the correct answer - my thing had the same first 6 shown on the PE page but diverged later. Using my definition, there wasn't one until at least 1 billion that didn't work.

Posted by: Aaron at March 14, 2008 07:41 PM

## Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)