This is problem 9 from Project Euler ... but the a + b +c = 100000.
mahoney@shannon:pythagorean$ gcc pythagorean.c -o pythagorean
mahoney@shannon:pythagorean$ ./pythagorean
sizeof(int) == 4 ; max is 2147483647
sizeof(long int) == 8 ; max is 9223372036854775807
- - - - - - - - - - -
Looking for a,b,c such that a**2+b**2=c**2 and a+b+c=100000 ...
a = 5408, b = 69844, c = 24748
a * a = 29246464
b * b = 583217040
c * c = 612463504
mahoney@shannon:pythagorean$
This answer is very wrong ... try confirming the arithmeteic at a python prompt. What's going on?