Project Euler 39 - Integer right triangles

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