Sum of two squares theorem

A nonnegative integer is a sum of two integer squares exactly when every prime congruent to 3 modulo 4 has even exponent in its prime factorization.

Connect