Summary
This lesson studies the prime numbers, the atoms of the multiplication of the natural numbers. It proves that every natural number greater than has a prime divisor, presents the sieve of Eratosthenes and the reason why it suffices to sieve up to the square root, and proves with Euclid that the primes are infinitely many. It then proves Euclid’s lemma, according to which a prime that divides a product divides one of its factors, and with it the fundamental theorem of arithmetic: every natural number greater than can be written as a product of primes in exactly one way. From the factorization one derives the number of divisors of a natural number, the characterization of the perfect squares and the irrationality of the square root of every natural number that is not a perfect square.
Learning objectives
- Distinguish the prime numbers from the composite ones and prove that every natural number greater than has a prime divisor.
- Apply the sieve of Eratosthenes and justify why it suffices to cross out the multiples of the primes not greater than the square root of the bound.
- Prove the infinitude of the primes, Euclid’s lemma, and the existence and uniqueness of the factorization into primes.
- Use the factorization to count and list divisors, recognize perfect squares and prove the irrationality of square roots.
Prime numbers and composite numbers
In the lesson on divisibility and division with remainder we saw that every natural number is divisible by and by itself. Some natural numbers admit no divisors other than those two; they are the pieces from which, by multiplication, all the others are built.
Definition (prime number). A natural number is prime if and its only divisors are and . A natural number that is not prime is called composite: it can be written as , with and . The number is neither prime nor composite.
The primes less than are the following fifteen:
The number is the only even prime, because every other even number has the divisor , which is different from and from the number itself. The exclusion of is not a whim of the definition: if were prime, the factorization into primes would no longer be unique, because , and the central theorem of this lesson would have to be stated with an exception.
The well-ordering principle
The proofs of this lesson rest on a form of the principle of induction that is especially convenient for reasoning about divisors: the well-ordering principle, according to which every nonempty set of natural numbers has a least element. It was derived from strong induction in the lesson on summations, progressions and induction, and here it is used without repeating its proof.
Every natural number greater than 1 has a prime divisor
The first result of the lesson ensures that no natural number greater than escapes the primes: there is always one that divides it, and it is found among the smallest divisors.
Every natural number has a prime divisor: the least divisor of greater than is prime. If, moreover, is composite, its least prime divisor satisfies . The figure marks on the line the divisors of .
Proof
The set of the divisors of greater than is not empty, because it contains itself; by the well-ordering principle, it has a least element .
If were composite, with , the factor would divide and, by the transitivity of divisibility, : it would be an element of less than , contrary to the choice of . Therefore, is prime.
Now let be composite, and let be its least prime divisor, which is the least element of . We write ; since is not prime, , and also divides .
By the minimality of , we have , and the monotonicity of multiplication gives the bound.
Therefore, to decide whether a natural number is prime it suffices to test the primes with : if none of them divides it, is prime. For example, for it suffices to test the primes up to , because : it is not divisible by , , , or , but it is divisible by , and . On the other hand, is not divisible by any of the primes , , , , and , and since , the number is prime.
Loading the content…
Completed
Sign in to save your progress