Solutions to problems posted on Project Euler written in Haskell.
Every problem admits a solution that requires less than a minute of computing time according to the Project Euler faq.
001 ✓ | 011 ✓ | 021 ✓ | 031 ✓ | 041 ✓ | 051 | 061 ✓ | 071 ✓ | 081 | 091 |
002 ✓ | 012 ✓ | 022 ✓ | 032 ✓ | 042 ✓ | 052 ✓ | 062 ✓ | 072 | 082 | 092 ✓ |
003 ✓ | 013 ✓ | 023 ✓ | 033 ✓ | 043 ✓ | 053 ✓ | 063 ✓ | 073 | 083 | 093 |
004 ✓ | 014 ✓ | 024 ✓ | 034 ✓ | 044 ✓ | 054 ✓ | 064 | 074 ✓ | 084 | 094 |
005 ✓ | 015 ✓ | 025 ✓ | 035 ✓ | 045 ✓ | 055 ✓ | 065 | 075 | 085 | 095 |
006 ✓ | 016 ✓ | 026 ✓ | 036 ✓ | 046 ✓ | 056 ✓ | 066 | 076 | 086 | 096 |
007 ✓ | 017 ✓ | 027 ✓ | 037 ✓ | 047 ✓ | 057 ✓ | 067 ✓ | 077 | 087 ✓ | 097 ✓ |
008 ✓ | 018 ✓ | 028 ✓ | 038 ✓ | 048 ✓ | 058 ✓ | 068 | 078 | 088 | 098 |
009 ✓ | 019 ✓ | 029 ✓ | 039 ✓ | 049 ✓ | 059 | 069 | 079 ✓ | 089 ✓ | 099 ✓ |
010 ✓ | 020 ✓ | 030 ✓ | 040 ✓ | 050 ✓ | 060 | 070 | 080 | 090 | 100 ✓ |
Completed puzzles are marked with either one of the below icons so that I can keep track of which puzzles still need work.
- ✓ program produces the correct answer, it might take (much) longer than a minute to run with
$ runhaskell
but will be considerably faster than a minute when compiled with$ ghc -O3
- 🐌 program produces the correct answer but it takes longer than a minute to run, even when compiled using
$ ghc -O3
, in other words: it needs work.