Primes and the Fundamental Theorem of Arithmetic
2.1 Primes
Section titled “2.1 Primes”Definition. An integer is prime if its only positive divisors are and . An integer that is not prime is composite.
1 is neither prime nor composite; a convention that makes unique factorisation statements clean.
Euclid’s lemma (from Divisibility): if is prime and , then or . This fails for composite ( but and ), and is precisely what makes primes special.
2.2 Infinitely Many Primes (Euclid)
Section titled “2.2 Infinitely Many Primes (Euclid)”Theorem. There are infinitely many primes.
Proof. Suppose are all the primes and consider
, so it has a prime divisor . But no divides (each leaves remainder 1), so is a prime not in the list; contradiction.
Note the proof gives no efficient method for producing new primes: need not be prime (the products are called Euclid numbers; $2 \cdot 3 \cdot 5 \cdot 7 \cdot 11 \cdot 13
- 1 = 30031 = 59 \times 509$ is composite).
2.3 The Fundamental Theorem of Arithmetic
Section titled “2.3 The Fundamental Theorem of Arithmetic”Theorem (FTA). Every integer can be written as a product of primes, and this factorisation is unique up to the order of the factors.
Existence (strong induction): is prime. If is composite, with ; each factor factors into primes by induction, so does too.
Uniqueness (Euclid’s lemma): suppose
with primes . Then , so for some ; both are prime so . Cancel and repeat on the remaining product. The lists match exactly.
Canonical form. Collect equal primes:
2.4 Consequences You Can Quote
Section titled “2.4 Consequences You Can Quote”- and from factorisations:
and always .
- Irrationality of : if in lowest terms then , so , hence (Euclid’s lemma); writing gives , so ; contradicting lowest terms. The same argument works with 2 replaced by any prime, proving irrational for every prime .
- No integer between 0 and 1 is a product of primes: the FTA genuinely fails in systems like (); uniqueness, not existence, is the delicate part.
2.5 Counting Divisors
Section titled “2.5 Counting Divisors”If then the number of positive divisors is
since a divisor chooses an exponent between 0 and independently for each prime. For example, has divisors.
2.6 The Sieve of Eratosthenes
Section titled “2.6 The Sieve of Eratosthenes”To list all primes up to : write the integers from 2 to , circle 2 and cross out all larger multiples of 2; circle the next surviving number and cross out its larger multiples; repeat while the circled number satisfies . Composites up to always have a prime factor , so the survivors are exactly the primes. Cost: operations.
2.7 Common Pitfalls
Section titled “2.7 Common Pitfalls”- 1 is not prime: allowing as a factor would destroy uniqueness of the factorisation.
- Factorisations must cover negative integers via the sign: .
- The FTA is about the multiset of primes: are the same factorisation in different orders.
- Euclid’s infinitude proof does not say is prime; only that it has a new prime factor.
See Also
Section titled “See Also”For exam proofs, write factorisations in canonical ascending-prime form before comparing; order-free multisets earn no method marks unless the canonical form is stated first. Every exam answer should conclude with the canonical form restated: the uniqueness statement is about the multiset of prime factors, not the written order of the product.