Euler problems

From HaskellWiki
Revision as of 06:45, 10 September 2008 by Galen (talk | contribs) (alter wording to reflect controversy, as noted in talk)
Jump to navigation Jump to search

These are solutions to the problems listed on Project Euler.

WARNING - Do not peek at any of these pages if you want to enjoy the benefits of Project Euler, unless you have already solved the problems.

The existence of these pages is very controversial; see the talk page for discussion. Many P.E. participants regard it as a global Internet competition which is being compromised by these readily available solutions, and some other sites hide their solution methods so that only those who know the answer can view them. The FAQ on the front page of the Project Euler site says the following, which appears to be a reference to pages such as this one:

I solved it by using a search engine, does that matter?

That depends on your motivation for solving the problems. It probably means that you've missed out on some beautiful and hidden mathematics.

In any case, it is recommended that you try the problems yourself before looking at the solutions. These are great exercises for improving your Haskell-fu, and reading the solutions beforehand could spoil the experience of solving them yourself.

Any further reading is at your own risk.

As a useful reference for those wanting a simple way to test their solutions in code, Euler answers provides a fairly complete list of the numeric solutions to the problems, in the form of a Haskell list of pairs.