Project Euler 120 - Square Remainders

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