Square Math solutions

Square Math was solved using Haskell by 2 contestants. Solution sizes: average 2565 bytes (shortest: 2349; longest: 2781).