We define a primitive Pythagorean triad to be a triple of positive integers (a,b,c) with greatest common divisor 1 such that:
a^2+b^2=c^2.
Examples of Pythagorean triads include (3,4,5) and (5,12,13).
In this question we find ALL primitive Pythagorean triads using high-school level methods...