Project Euler #218: Perfect right-angled triangles