mathematical ideas that shaped the world prime numbers
TRANSCRIPT
![Page 1: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/1.jpg)
Mathematical Ideas that Shaped the World
Prime numbers
![Page 2: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/2.jpg)
Plan for this class
Why are prime numbers interesting? What is the Prime Number Theorem? How could prime numbers win you a
million dollars? How does public key cryptography
work?
What food did you bring for the maths picnic?!
![Page 3: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/3.jpg)
But first...
Some mathematical mind reading!
![Page 4: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/4.jpg)
A prime number is a number which is only divisible by itself and 1.
Prime numbers
7 6
![Page 5: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/5.jpg)
The building blocks of numbers Primes are often known as the building
blocks of numbers, since they generate all other numbers.
The Fundamental Theorem of Arithmetic states that every number can be written uniquely as a product of primes.
28 = 22x7, 60 = 22x3x5
![Page 6: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/6.jpg)
Sieve of Eratosthenes
This is an ancient Greek method for finding all prime numbers.
![Page 7: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/7.jpg)
Pattern of the primes
Prime numbers seem to occur randomly.
Sometimes they come in pairs, e.g. (11,13), (29,31), (59,61)…
…and other times there are long gaps between them, e.g. (113, 127)
There is no formula that will predict where the next prime number will be.
![Page 8: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/8.jpg)
Sequences of primes
![Page 9: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/9.jpg)
Fermat primes
![Page 10: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/10.jpg)
Mersenne primes
![Page 11: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/11.jpg)
Mersenne primes
![Page 12: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/12.jpg)
The Ulam Spiral
In 1963 the mathematician Stanislaw Ulam was doodling during a boring meeting…
37 36 35 34 33 32 31
38 17 16 15 14 13 30
39 18 5 4 3 12 29
40 19 6 1 2 11 28
41 20 7 8 9 10 27
42 21 22 23 24 25 26
43 44 45 46 47 48 49
![Page 13: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/13.jpg)
The Ulam Spiral
200x200 Ulam spiral Sacks spiral
![Page 14: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/14.jpg)
Distribution of the primes
Rather than trying to find patterns in primes, mathematicians started looking at the general distribution of primes among the numbers.
For example, if you pick a random number in the range of 0 to N, what is the chance that this number is prime?
![Page 15: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/15.jpg)
The Prime Number Theorem
![Page 16: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/16.jpg)
Prime counting
![Page 17: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/17.jpg)
The prime number theorem
always a bit less than (x)
![Page 18: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/18.jpg)
Enter Riemann
In 1859 Riemann gave an explicit formula for (x).
There was another function, called the Riemann zeta function, which controlled how far away the primes were from their expected positions.
(s)Get back
over here!!
![Page 19: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/19.jpg)
Bernhard Riemann (1826 – 1866)
Born near Hanover to a poor family.
Was shy, had frequent nervous breakdowns and a fear of public speaking.
Trained to become a pastor but kept getting distracted by maths.
![Page 20: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/20.jpg)
Bernhard Riemann (1826 – 1866)
While studying theology in Göttingen he met Gauss, and was persuaded to switch to maths.
Founded Riemannian geometry – the cornerstone of Einstein’s theory of relativity.
Died of TB at age 40.
![Page 21: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/21.jpg)
The zeta function
![Page 22: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/22.jpg)
The Riemann hypothesis
![Page 23: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/23.jpg)
The Riemann Hypothesis
![Page 24: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/24.jpg)
The Riemann Hypothesis
The position of the zeros of the zeta function dictate the positions of the prime numbers.
The Riemann Hypothesis was Problem 8 of Hilbert’s 1900 list of unsolved problems.
It is now one of 6 remaining Clay Institute Millennium Prize Problems worth $1 million.
![Page 25: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/25.jpg)
The Riemann Hypothesis
So far 10,000,000,000,000 zeros have been checked and they all
satisfy the conjecture.
![Page 26: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/26.jpg)
Are prime numbers useless?
"I have never done anything 'useful'. No
discovery of mine has made, or is likely to
make, directly or indirectly, for good or ill, the least difference to the amenity of the
world.“ G.H.Hardy
![Page 27: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/27.jpg)
Modular arithmetic
What time will it be 28 hours from now? What day of the week will it be in 30
days? What is the last digit of
4538729 x 9957397632?
To answer these questions, you have used modular arithmetic!
![Page 28: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/28.jpg)
Modular arithmetic
In modular arithmetic we have a clock with n numbers on.
Whenever we goaround we start againat zero. We say we are workingmodulo n, or mod n.
0
1
2
34
5
6
![Page 29: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/29.jpg)
The problem with cryptography The usual problem with sending a coded
message is that you have to agree on a key for the code beforehand. A shift on a Caesar cipher The starting positions for an Enigma machine An actual key to unlock a box
If anyone finds the key, they can decrypt all your messages.
![Page 30: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/30.jpg)
Public key cryptography
In public key cryptography, there are two different keys: A public key which can be used to
encrypt messages. A private key which can be used to
decrypt messages.
![Page 31: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/31.jpg)
Public key cryptography
Digitally, this system requires mathematical problems which are easy to do in one direction but very difficult to do backwards without the key.
E.g. it is very easy to multiply two primes together, but very difficult to factorise the product without knowing one of the primes.
97 x 53 = 5141
![Page 32: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/32.jpg)
One-way problems
Another example is that it is easy to compute powers modulo a prime, but difficult to find logarithms.
56 = 8 (mod 23)
![Page 33: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/33.jpg)
Diffie-Hellman key exchange
We can use this idea to obtain a shared secret.
Alice and Bob agree on a prime p and a number g.
Alice chooses a secret number a and publishes A = ga (mod p).
Bob chooses a secret number b and publishes B = gb (mod p).
Now both can compute gab (mod p).
![Page 34: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/34.jpg)
RSA cryptography
RSA cryptography was originally invented by the Englishman Clifford Cocks in 1973.
However, this remained secret until 1997 as the work was done for GCHQ.
It is now named after Ron Rivest, Adi Shamir and Leonard Adleman who described the method in 1977.
![Page 35: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/35.jpg)
The RSA algorithm
1. Choose two nice big primes, p and q.2. Compute n =pq.3. Compute (n) = (p-1)(q-1)4. Choose e so that e and (n) are
coprime.5. Publish e and n; this is your public key.6. Find d = e-1 (mod (n)); this is your
private key.
![Page 36: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/36.jpg)
Encryption
Bob wants to send Alice a message M. Bob knows Alice’s public key: (e,n). He computes c = Me (mod n).
Alice computes cd (mod n) and recovers M.
(using the magic of modular arithmetic and some number theory!)
![Page 37: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/37.jpg)
Problems with RSA
The two primes must be chosen randomly. If many people pick the same prime then the numbers are easy to factorise.
The same plaintext message sent to many different people becomes easy to decrypt. Therefore M is randomised prior to sending.
p and q must not be too close together, and d should be large.
![Page 38: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/38.jpg)
Breaking RSA
Currently the largest number factorised by a general algorithm is 768 bits long.
RSA keys are typically 1024 – 2048 bits long.
Note: a proof of the Riemann Hypothesis is unlikely to break our security systems!
![Page 39: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/39.jpg)
Lessons to take home
Prime numbers are the building blocks of arithmetic.
There is no discernible pattern to the primes, although we understand how they are distributed.
Primes underlie most of our cryptosystems.
![Page 40: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/40.jpg)
Maths Picnic
!
![Page 41: Mathematical Ideas that Shaped the World Prime numbers](https://reader036.vdocuments.mx/reader036/viewer/2022062307/551aa2f9550346856e8b4610/html5/thumbnails/41.jpg)