Improved solution for euler5 in Haskell

`lcm` appears to be built-in in GHC.