Use the given integer satisfying . The Euclidean lattice under consideration has basis , because every vector in it is uniquely with . Its fundamental parallelogram therefore has area
We use the following two-dimensional form of the Minkowski convex body theorem: a convex, centrally symmetric measurable subset of of area strictly greater than four times the covolume of a full-rank Euclidean lattice contains a nonzero vector of that lattice. Apply it to the closed disk of squared radius . Its area is , so it contains a nonzero lattice vector satisfying
On the other hand the defining modular congruence and imply
There is exactly one positive multiple of strictly below , so . Neither coordinate can be zero, since a prime is not the square of an integer. This congruence lattice proof of the prime sum of two squares proves the required case of the sum of two squares theorem without assuming any conclusion at the critical area .
Sum of two squares theorem Created 2026-09-24 Updated 2026-11-05
A positive integer is a sum of two squares of integers exactly when every prime factor congruent to three modulo four has an even prime exponent in its prime factorization. The zero-square convention permits ; zero itself separately has .
For necessity, let divide . If , then , contradicting Euler's criterion for minus one at such a prime. Hence , and then as well. Divide both coordinates by and repeat. Each removal subtracts two from the prime valuation of , forcing it to be even.
For sufficiency, two is . A prime number congruent to one modulo four has a square root of minus one by Euler's criterion, and the congruence lattice proof of the prime sum of two squares turns that root into a representation of the prime. Each even power of a prime congruent to three modulo four is already a perfect square, hence a sum of two squares with a zero term. Finally, the Brahmagupta-Fibonacci identity combines the representations across all prime powers in .
For example, qualifies, while does not. The criterion examines prime exponents, rather than only the residue of the whole number modulo four.