Exercise 550Number theory › PrimesHigh schoolAdded 3 Nov 2026
Characterization of primes
#primes#characterization#divisors
Statement
Show that is prime iff or for all integers .
Hint
Forward: Euclid's lemma. Converse: if with , then but .
Show solutionHide solution
Solution
Forward. Suppose prime and . Euclid's lemma gives or .
Converse. If is composite, write with . Then but and (since ). Contradiction.
Conclusion. The characterization holds.