Project Euler 273 - Sum of Squares

Official link: https://projecteuler.net/problem=273