UVA106 - Fermat vs. Pythagoras

number theory, math, Pythagorean triples, Euclid's formula.