Revision as of 13:41, 24 February 2008
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.
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.
Note that these solutions are indeed entirely within the spirit of Project Euler. For those who feel otherwise, note that the FAQ on the front page of the Project Euler site says the following:
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.
So anyone reading further will certainly miss some opportunities to a) discover some beautiful and hidden mathematics b) learn to solve those problems himself.
Any further reading is at your own risk.
- Questions 1 to 10
- Questions 11 to 20
- Questions 21 to 30
- Questions 31 to 40
- Questions 41 to 50
- Questions 51 to 60
- Questions 61 to 70
- Questions 71 to 80
- Questions 81 to 90
- Questions 91 to 100
- Questions 101 to 110
- Questions 111 to 120
- Questions 121 to 130
- Questions 131 to 140
- Questions 141 to 150
- Questions 151 to 160
- Questions 161 to 170
- Questions 171 to 180
- Questions 181 to 190
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.