# Euler problems

### From HaskellWiki

BrettGiles (Talk | contribs) m (EulerProblems moved to Euler problems) |
Lambda Fairy (Talk | contribs) m (Removed "answers" link. Currently Euler answers redirects back to this page anyway.) |
||

(39 intermediate revisions by 10 users not shown) | |||

Line 1: | Line 1: | ||

− | These are the 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]. |

+ | '''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. |
||

− | It is recommended you try them yourself before looking at the solutions as these form good exercises for improving your Haskell-fu. |
+ | 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: |

− | * [[EulerProblems/1_to_10|Questions 1 to 10]] |
+ | |

− | * [[EulerProblems/11_to_20|Questions 11 to 20]] |
+ | <blockquote> |

− | * [[EulerProblems/21_to_30|Questions 21 to 30]] |
+ | <p><em>I solved it by using a search engine, does that matter?</em></p> |

− | * [[EulerProblems/31_to_40|Questions 31 to 40]] |
+ | <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> |

− | * [[EulerProblems/41_to_50|Questions 41 to 50]] |
+ | </blockquote> |

− | * [[EulerProblems/51_to_60|Questions 51 to 60]] |
+ | |

− | * [[EulerProblems/61_to_70|Questions 61 to 70]] |
+ | In any case, it is recommended that you try the problems yourself before looking |

− | * [[EulerProblems/71_to_80|Questions 71 to 80]] |
+ | 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. |

− | * [[EulerProblems/81_to_90|Questions 81 to 90]] |
+ | |

− | * [[EulerProblems/91_to_100|Questions 91 to 100]] |
+ | Any further reading is at your own risk. |

− | * [[EulerProblems/101_to_110|Questions 101 to 110]] |
+ | |

− | * [[EulerProblems/111_to_120|Questions 111 to 120]] |
+ | * [[Euler problems/1 to 10|Questions 1 to 10]] |

− | * [[EulerProblems/121_to_130|Questions 121 to 130]] |
+ | * [[Euler problems/11 to 20|Questions 11 to 20]] |

− | * [[EulerProblems/131_to_140|Questions 131 to 140]] |
+ | * [[Euler problems/21 to 30|Questions 21 to 30]] |

− | * [[EulerProblems/141_to_146|Questions 141 to 146]] |
+ | * [[Euler problems/31 to 40|Questions 31 to 40]] |

+ | * [[Euler problems/41 to 50|Questions 41 to 50]] |
||

+ | * [[Euler problems/51 to 60|Questions 51 to 60]] |
||

+ | * [[Euler problems/61 to 70|Questions 61 to 70]] |
||

+ | * [[Euler problems/71 to 80|Questions 71 to 80]] |
||

+ | * [[Euler problems/81 to 90|Questions 81 to 90]] |
||

+ | * [[Euler problems/91 to 100|Questions 91 to 100]] |
||

+ | * [[Euler problems/101 to 110|Questions 101 to 110]] |
||

+ | * [[Euler problems/111 to 120|Questions 111 to 120]] |
||

+ | * [[Euler problems/121 to 130|Questions 121 to 130]] |
||

+ | * [[Euler problems/131 to 140|Questions 131 to 140]] |
||

+ | * [[Euler problems/141 to 150|Questions 141 to 150]] |
||

+ | * [[Euler problems/151 to 160|Questions 151 to 160]] |
||

+ | * [[Euler problems/161 to 170|Questions 161 to 170]] |
||

+ | * [[Euler problems/171 to 180|Questions 171 to 180]] |
||

+ | * [[Euler problems/181 to 190|Questions 181 to 190]] |
||

+ | * [[Euler problems/191 to 200|Questions 191 to 200]] |
||

+ | |||

+ | [[Category:Tutorials]] |
||

+ | [[Category:Code]] |

## Latest revision as of 05:51, 12 May 2012

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.

- 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
- Questions 191 to 200