Project Euler 247 - Squares under a hyperbola

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