A prime number is an integer whose only divisors are and itself. The primes below are
The number is not prime (by convention), and an integer that is not prime is called composite.
Mathematics · Glossary
A prime number is an integer whose only divisors are and itself. The primes below are
The number is not prime (by convention), and an integer that is not prime is called composite.
An integer is prime when its only positive divisors are and . For prime and : either , or . Consequently (Theorem 6.8), Euclid’s lemma holds: if then or .
Example 6.24 (Fermat’s converse fails: )
Fermat’s little theorem gives a cheap compositeness test: if for some coprime to , then is not prime. Could the test also certify primality? No: take , composite, and . Since ,
the composite passes Fermat’s test for the base (it is the smallest such pseudoprime). The base unmasks it (), and practical primality testing therefore runs the test on several bases, plus refinements — the industrial versions of this idea are what certify the large primes of Remark 6.27. Moral: an implication and its converse live separate lives (Remark 1.10), even for theorems.