Jump to content

Number Theory/The Integers/Prime Numbers

From Wikibooks, open books for an open world

Introduction

[edit | edit source]

Prime numbers are essential to everything discussed within number theory. In a way, prime numbers are the "building blocks" of all the natural numbers greater than 1, as you can always express them as a product of primes. Prime numbers are natural numbers greater than 1 such that their divisors are only and itself. Numbers greater than 1 that are not prime are termed composite.

Definition

[edit | edit source]

An integer is called a prime number if 1 and are its only positive divisors. Stated in another way, cannot be expressed as a product of two natural numbers both smaller than .

A natural number is composite if it has a divisor such that . It then follows that , for some such that .

The first 10 prime numbers are: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29.

Notice that 2 is the only even prime, as any even number greater than 2 can be expressed in the form such that .

Finding Primes

[edit | edit source]

Sieve of Eratosthenes

[edit | edit source]
The Sieve of Eratosthenes visualized. The numbers divisible by 2 are highlighted in red (including 2 itself in a deeper shade), 3 in green, 5 in blue, and 7 in yellow. The remaining numbers are left in gray and circled (including 2,3,5, and 7 themselves) to signify they are prime.

Prime numbers have been the subject of study of mathematicians for milennia. Eratosthenes (b. c. 276BC – c. 195) was a Greek mathematician from the Classical antiquity who developed a systemic method to find prime numbers.

First one lists all the numbers up to certain amount, in the image to the right we finish at 99, but one may list more numbers as desired. Next, one takes all numbers that are multiples of 2 (except 2 itself) and crosses them out. Since all of these numbers will be even they can be written as and thus not prime. Then, repeat this process for the next smallest number that was not crossed out, in this case 3. Again, cancel all numbers that are multiples of 3, since all cancelled out numbers can be written as they too are not prime. Repeating this process for 5 and 7 we have form the chart formed on the right. Once one gets the next smallest number that is not circled out and it itself does not have any multiples that are not already colored in (in this case 11) halt the sieve.

One may also note we may stop sieving numbers if the last number we are seiving to (in the previous example, 99) is less than the square of the next prime. The next prime in the sequence is 11, note that , since we can halt the sieve at this point too. Since all multiples of 11: will be multiplies of 11 with at least one other prime except for as the the only prime factor is 11 itself.

Prime Number Results

[edit | edit source]

Euclid's Theorem

[edit | edit source]

By the Sieve of Eratosthenes we expect the number of primes to get smaller as we big larger and larger numbers because we are more likely to find a divisor of a number. However, counterintuitively, there are infinitely many prime numbers. This result is known as Euclid's Theorem and he proved it nearly 100 years before the Sieve of Eratosthenes was formulated in his textbook Elements.

Euclid's Theorem

The set which contains all primes is infinite.

Proof. Suppose that for argument's sake the list of primes is finite, then we have . Then define a two new numbers and . Now is either prime or not prime.

  • If is prime then . Hence there exists a prime outside the finite list, contradicting the assumption.
  • However, if is not prime then , . If howvever , if divides both and then it must divide their difference. Therefore . No prime number divides 1. Hence . Therefore in either case . This contradicts the assumption that the set of primes is finite. Hence is infinite. □