Project euler implementations in haskell