Square Math solutions

Square Math was solved using C# by 5 contestants. Solution sizes: average 6671 bytes (shortest: 3881; longest: 8533).