• No results found

Prime numbers Jaap Top

N/A
N/A
Protected

Academic year: 2021

Share "Prime numbers Jaap Top"

Copied!
41
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Prime numbers

Jaap Top

IWI-RuG & DIAMANT

12 March 2007

(2)

Prime

• Latin ‘primus’, Indo-European ‘per-’,‘pre-’

• first, most basic

• (primitive), indecomposable

• the fundamental building blocks for numbers

(3)

Every integer number is a product of primes.

101 = 101

1001 = 7 × 11 × 13 10001 = 73 × 137 100001 = 11 × 9091 1000001 = 101 × 9901 10000001 = 11 × 909091 100000001 = 17 × 5882353

1000000001 = 7 × 11 × 13 × 19 × 52579 10000000001 = 101 × 3541 × 27961

100000000001 = 11 × 11 × 23 × 4093 × 8779 1000000000001 = 73 × 137 × 99990001

10000000000001 = 11 × 859 × 1058313049

100000000000001 = 29 × 101 × 281 × 121499449

1000000000000001 = 7 × 11 × 13 × 211 × 241 × 2161 × 9091 etc.(?)

(4)

Euclid (±330BC–???), Elements, Book IX, Proposition 20:

There are infinitely many prime numbers

(. . . more than any given number . . .)

(5)
(6)

Proof (Euclid). More than any given number???

Suppose we have some number of primes

Multiply all of them, and after that, add 1 to the product The result is a new number (larger than the primes we had) If the new number is prime, we found a new prime!

If the new number is not a prime, then it is composite, hence some prime number divides it

This prime is not among the old ones, since they divide the product, hence leave a remainder 1 when you divide the product plus 1 by them

So also in this case, we found a new prime!

(7)

How to find all primes?

Not by Euclid’s proof !

Trick of Eratosthenes (276 BC–194 BC)

(8)

• Write the numbers 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, . . .

• The first one, 2, is prime. Cross out its multiples (they are not prime):

2, 3, 6 4, 5, 6 6, 7, 6 8, 9, 610, 11, 612, 13, 614, 15 . . .

• The next number (3) is prime (if it was a multiple of a smaller one, it was crossed out). Cross out its multiples

2, 3, 6 4, 5, 6 6, 7, 6 8, 6 9, 610, 11, 612, 13, 614, 615, . . .

• et cetera. What remains, are all primes

Euclid’s theorem says, that no matter how far you go, you will find numbers that are not crossed out

(9)

There exist arbitrarily long intervals of crossed-out integers

In other words, there exist consecutive primes whose difference is larger than any given number

Proof: fix a (large) number n and multiply:

M := 2 × 3 × 4 × 5 × . . . × n.

Now M + 2 is a multiple of 2, and M + 3 is a multiple of 3, and M + 4 is a multiple of 4, et cetera, until M + n, which is a multiple of n

So we constructed a large interval not containing any primes!

Example: 90, 91 = 7 × 13, 92, 93 = 3 × 31, 94, 95, 96.

(10)

How many primes below a given number?

below: number of primes:

100 25

10, 000 1, 229

1000, 000 78, 498

100, 000, 000 5, 761, 455

10, 000, 000, 000 455, 052, 511

1000, 000, 000, 000 37, 607, 912, 018 100, 000, 000, 000, 000 3, 204, 941, 750, 802 10, 000, 000, 000, 000, 000 279, 238, 341, 033, 925 1000, 000, 000, 000, 000, 000 24, 739, 954, 287, 740, 860 100, 000, 000, 000, 000, 000, 000 2, 220, 819, 602, 560, 918, 840 10, 000, 000, 000, 000, 000, 000, 000 201, 467, 286, 689, 315, 906, 290 What percentage of all numbers is prime? Table:

25, 12, 7.8, 5.8, 4.6, 3.8, 3.2, 2.8, 2.5, 2.2, 2.0, . . . (??)

(11)

Carl Friedrich Gauss (1777-1855)

(12)

Notation: π(n) means: the number of primes below n

So, for example, π(100) = 25 and π(12032007) = 790009 Gauss (age 15 . . .) ‘guessed’: π(n) is approximately n

ln(n)

Meaning: for larger and larger n, the quotient of the two expres- sions tends to 1

ln(n): ‘natural logarithm’ of n (≈ number of digits times 2.3)

(13)

π(x) and x/ln(x):

This guess by Gauss is called ‘the prime number theorem’

Proven in 1896 by Jacques Solomon Hadamard (1865–1963) and also by the Belgian mathematician Charles Jean Gustave Nicolas Baron de la Vall´ee Poussin (1866–1962)

(14)

Hadamard & De la Vall´ee Poussin

(15)

Some consequences:

• Approximately 100/ ln(n) percent of all numbers below n is prime

• 0 percent of all numbers is prime

• The probability of picking a prime from the set of numbers below n, is approximately 1/ln(n)

• Of all numbers of 10, 000, 000 digits, roughly 0.000004% is prime

(16)
(17)

The next EFF prize is expected to be awarded this year:

(18)

GIMPS = Great Internet Mersenne Prime Search

Current record: 232,582,657 − 1 is prime (9,808,358 digits)

(19)

Mersenne primes: primes of the form power of 2, minus 1

Euclid: such primes give ‘perfect numbers’ (perfect means: equal to the sum of their divisors [‘parts’] )

Examples: 22 − 1 = 3 is prime, 2 × 3 = 6 = 1 + 2 + 3 is perfect 23 − 1 = 7 is prime, 22 × 7 = 28 = 1 + 2 + 4 + 7 + 14

25 − 1 = 31 is prime, 24 × 31 = 496 = 1 + 2 + . . . + 16 + 31 + 62 + . . . + 248

Marin Mersenne stated (1544) incorrectly: 267 − 1 and 2257 − 1 are primes. Also, incorrectly, that 261 − 1 and 289 − 1 are not primes

267 − 1 = 193707721 × 761838257287

(20)

Marin Mersenne (1588–1648)

(21)

For testing whether M := 2p− 1 is prime, there is a test involving less than p steps:

• s1 := 4

• For n = 2, . . . , p − 1: sn := remainder of (sn−1)2 − 2 upon division by M

• M is prime precisely when sp−1 = 0

This is called the Lucas-Lehmer test

(22)

Edouard Lucas (1842–1891), Derrick H. Lehmer (1905–1991)

(23)

Other special primes: Fermat primes. Of the form 2M + 1 For such a number to be prime, M must be a power of 2 Fermat thought that all numbers 22n + 1 are primes

True for n = 0 upto n = 4. False for 5 ≤ n ≤ 32 232 + 1 = 641 × 6700417

No example of a Fermat prime beyond 216 + 1 known!

(24)

Testing primality is nowadays considered ‘easy’

(for numbers of upto thousands, not millions, of digits)

However, factoring composite numbers, is considered ‘hard’

(already for numbers of 200 digits)

(25)

Henri Cohen & Hendrik Lenstra (Leiden university)

‘CL’ in the APR-CL primality test (1984)

(26)

Theoretical result, announced in 2002, published in 2004:

Manindra Agrawal, Neeraj Kayal, Nitin Saxena Theorem. ‘PRIMES’ is in P

Meaning: there is a computer program that determines whether a given input number n is prime

Required computer memory for running it: a constant times the fifth power of the number of digits of n

Required computing time: at most a constant times the sixth power of the number of digits of n

(27)

the AKS algorithm

(28)

Agrawal, Kayal & Saxena

(Nitin Saxena now is a postdoc at CWI, Amsterdam)

(29)

Two applications of prime numbers 1. D-H key exchance protocol

named after Whitfield Diffie and Martin Hellman (1976)

(also invented by British Intelligence GCHQ employee Malcolm Williamson in 1974, but classified)

2. RSA cryptosystem

named after Ron Rivest, Adi Shamir and Leonard Adleman (1977) (also invented by GCHQ employee Clifford Cocks in 1973, but classified)

(30)

Diffie & Hellman

(31)

Rivest, Shamir & Adleman

(32)

D-H key exchange: two parties A and B have a ‘pincode’ (a large number) a and b, respectively

The pincode has to remain secret for everybody

Now they wish to share a common secret ‘key’ (also a large number)

(33)

D-H: the parties agree upon a number (say, 777) and a large prime p. Everybody can hear the choice of the number and of p A computes the remainder of 777a upon division by p and gives this to B

B computes the remainder of 777b upon division by p and gives this to A

Everybody hears what is given from one to the other

Now A raises what he received, to the ath power and computes the remainder upon division by p. Similarly for B, with the bth power. This gives them a common, secret key: it equals the remainder of 777ab upon division by p

(34)

RSA: take large (secret) primes p and q Everybody is allowed to know N := p × q

Someone with a (known to you) code number e, can inform you of the secret message m (also a number, below N ), by sending you the remainder r of me upon division by N

Since you know p and q and e, you can compute a number d with the property that d × e has remainder 1 upon division by (p − 1) × (q − 1)

Having received r, you compute the remainder of rd upon division by N . This equals the secret message m

(35)

Back to theory. Groningen, 1939

Theorem (Van der Corput) There exist infinitely many triples of primes p1 < p2 < p3 with p3 − p2 = p2 − p1

So, such primes are in ‘arithmetic progression’: denoting the smaller of the three by p, they are p, p + a, p + a + a

Examples: 3, 3 + 2, 3 + 4 and 5, 5 + 6, 5 + 12 and 7, 7 + 12, 7 + 24 et cetera

(36)

Johannes Gualtherus van der Corput (1890–1975) Professor in Groningen between 1923 and 1945

Afterwards, first director of ‘Mathematisch Centrum’ in Amster- dam

(37)

In 2004, Van der Corput’s theorem was superseded by

Theorem (Green & Tao) There exist arbitrarily long sequences of primes in arithmetic progression

So, for any positive n, there is a prime p and a positive a such that all numbers

p, p + a, p + 2a, p + 3a, . . . , p + na are all prime

(38)

Terence Tao & Ben Green

(39)

One of the modern, open problems about primes: the ABC- conjecture

Read Nieuw Archief voor Wiskunde, March 2007

Currently, almost 4000 Dutch high school students provide com- puter time for the experiment “Reken mee met ABC”

(40)
(41)

Referenties

GERELATEERDE DOCUMENTEN

In this Note we shall observe that our methods in [1] generalize to determine the dual of the principal ideal generated by a pure p-form.

2) a) Define the Debye screening length and explain how it is related to the parameter u, , for polyelectrolytes where a is the distance between charged groups on a

[r]

\linegoal \linegoal first expands to the current value (\linewidth or the line goal stored in the .aux file as a zref property). Thereafter, \LNGL@setlinegoal is expanded in order

• On each sheet of paper you hand in write your name and student number.. • Do not provide just

Simulations show that the times the atom stays at each position are exponentially distributed with mean 2 (picoseconds) for the Up and Bottom positions and mean 1 for the

Hij beschikt tijdelijk enkel over de volgende gege- vens met betrekking tot het aantal calorieen per soort boterhambeleg.. afkorting soort

N.A.P., tenzij anders vermeld Diameters in millimeters, tenzij anders vermeld.. Maten in meters, tenzij