Euler41.

Also refactoring (Helper.hs).