Special Pythagorean triplet
Much more efficient solution to problem 9