Fermat's theorem on sums of two squares

An odd prime is a sum of two integer squares if and only if it is congruent to 1 modulo 4.

Connect