Three relatively prime integers are the sides of a right triangle. If the smallest leg has length 28, find the sum of all the possible values of the hypotenuse.
Here are all the relatively prime sides of a right triangle up to a 1,000,000:
53, 28, 45
197, 28, 195
Sums of Hypotenuse: 53 + 197 = 250