Haskell-solution to projecteuler.net problems