Let
Its minimal polynomial is , and the algebraic norm gives
Suppose that is composite and choose a prime divisor . Since has the root modulo , the ideal
is a prime ideal of ideal norm . The triviality of the ideal class group makes principal, so .
The ring of integers of a quadratic field consists of elements
whose norm is . If , this norm is a square and cannot be the prime . If , then
and integrality gives , again a contradiction. Therefore the Euler prime-generating quadratic from class number one yields