Difference between revisions of "Euler problems"

From HaskellWiki
Jump to navigation Jump to search
m
 
(15 intermediate revisions by 7 users not shown)
Line 1: Line 1:
[[Category:Pages to be removed]]
 
 
These are solutions to the problems listed on [http://projecteuler.net/index.php?section=view Project Euler].
 
These are solutions to the problems listed on [http://projecteuler.net/index.php?section=view Project Euler].
   
Line 5: Line 4:
 
benefits of Project Euler, unless you have already solved the problems.
 
benefits of Project Euler, unless you have already solved the problems.
   
  +
The existence of these pages is very controversial; see the [[Talk:Euler problems|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 [http://www.projecteuler.net/ front page of the Project Euler site] says the following, which appears to be a reference to pages such as this one:
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 [http://www.projecteuler.net/ front page of the Project Euler site] says the following:
 
   
 
<blockquote>
 
<blockquote>
 
<p><em>I solved it by using a search engine, does that matter?</em></p>
 
<p><em>I solved it by using a search engine, does that matter?</em></p>
 
<p>That depends on your motivation for solving the problems. It probably means that you've missed out on some beautiful and hidden mathematics.</p>
 
<p>That depends on your motivation for solving the problems. It probably means that you've missed out on some beautiful and hidden mathematics.</p>
 
</blockquote>
   
 
In any case, it is recommended that you try the problems yourself before looking
So anyone reading further will certainly miss some opportunities to
 
 
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.
a) discover some beautiful and hidden mathematics
 
b) learn to solve those problems himself.
 
   
 
Any further reading is at your own risk.
 
Any further reading is at your own risk.
 
</blockquote>
 
   
 
* [[Euler problems/1 to 10|Questions 1 to 10]]
 
* [[Euler problems/1 to 10|Questions 1 to 10]]
Line 41: Line 35:
 
* [[Euler problems/171 to 180|Questions 171 to 180]]
 
* [[Euler problems/171 to 180|Questions 171 to 180]]
 
* [[Euler problems/181 to 190|Questions 181 to 190]]
 
* [[Euler problems/181 to 190|Questions 181 to 190]]
  +
* [[Euler problems/191 to 200|Questions 191 to 200]]
 
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.
 
   
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]
 
[[Category:Code]]
 
[[Category:Code]]
  +
[[Category:Programming exercise spoilers]]

Latest revision as of 01:17, 13 February 2019

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.