Special pythagorean triplet: Difference between revisions

m
→‎{{header|REXX}}: changed a word in the REXX section header.
m (Thundergnat moved page Special Pythagorean Triplet to Special pythagorean triplet: Capitalization policy)
m (→‎{{header|REXX}}: changed a word in the REXX section header.)
Line 276:
Some optimizations were done such as pre-computing the squares of all possible A's, B's, and C's.
 
Also, there were multiple shortcuts to limit an otherwise exhaustingexhaustive search;   Once a sum or a square was too big,
<br>the next integer was used.
<lang rexx>/*REXX pgm computes/shows integers A, B, and C that solve: A+B+C = 1000; A^2+B^2 = C^2*/