Project Euler problems in (poor) Haskell