Project Euler 176 - Right-angled triangles that share a cathetus

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