P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a...

15
PRIME NUMBERS

Transcript of P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a...

Page 1: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

PRIME NUMBERS

Page 2: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

WHAT IS A PRIME NUMBER?

In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number divisors: 1 and itself.

The first twenty-five prime numbers are:

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97

1 is NOT a prime number. WHY?...

Page 3: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

...BECAUSE * Until the 19th century, number 1 was considered a

prime, with the definition being just that a prime is divisible only by 1 and itself but not requiring a specific number of distinct divisors.

The change occurred so that the fundamental theorem of arithmetic, as stated, is valid, i.e., “each number has a unique factorisation into primes.”

The number one is useless in this regard because a = 1.a = 1.1.a = ... That is, divisibility by one fails to provide us any information about a.

Page 4: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

EUCLID’S PRIMES

Euclid first proved that the number of primes is infinite. There is no largest prime number as much as there is no largest number!

Euclid started by looking at the known primes and adding one to their product.

For example both 2 and 3 are primes: their product + 1 is also a prime: 2*3+1=7.

Continue by adding 5 to the same process: 2*3*5+1=31 – and yes that is a prime too.

Page 5: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

EUCLID’S PROOF

o Call the primes in our finite list p1, p2, ..., pr. o Let P be any common multiple of these primes plus one

(for example, P = p1p2...pr+1). o Now P is either prime or it is not. If it is prime, then P is

a prime that was not in our list. If P is not prime, then it is divisible by some prime, call it p.

o Notice p can not be any of p1, p2, ..., pr, otherwise p would divide 1, which is impossible.

o So this prime p is some prime that was not in our original list. Either way, the original list was incomplete.

Page 6: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

*o Note that what is found in this proof is another prime - one

not in the given initial set. o There is no size restriction on this new prime, it may even be

smaller than some of those in the initial set. o For example, if we begin with the set:

{2, 3, 7, 43, 13, 139, 3263443}then P = 547.607.1033.31051.

o The new prime found would be 547, 607, 1033 or 31051, all of which are smaller than the last prime in the original set.

Page 7: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

CAN NEGATIVE NUMBERS BE PRIME?

By the usual definition of prime for integers, negative integers can not be prime.

By this definition, primes are integers greater than one with no positive divisors besides one and itself. Negative numbers are excluded. In fact, they are given no thought.

Page 8: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

BUT, WHEN VIEWED DIFFERENTLY…

Now suppose we want to bring in the negative numbers: then -a divides b when every a does, so we treat them as essentially the same divisor.

This happens because -1 divides 1, which in turn divides everything.

Numbers that divide one are called units. Two numbers a and b for which a is a unit times b are called associates. So the divisors a and -a of b above are associates.

In the same way, -3 and 3 are associates, and in a sense represent the same prime.

Page 9: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

So yes, negative integers can be prime (when viewed this way).

In fact the integer -p is prime whenever p, but since they are associates, we really do not have any new primes.

For example: the Gaussian integers are the complex numbers a+bi where a and b are both integers.

There are four units (integers that divide one) in this number system: 1, -1, i, and -i.

So each prime has four associates.

Page 10: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

USES OF PRIMES

Calculation of prime numbers was a purely mathematical endeavour. But, in the 19th century, there was a need for secrecy, especially during times of war.

Messages and files needed to be encod℮d, so that the enemy couldn’t read them.

Encryption was used, and computers were used to make more complex, harder to crack codes.

It was found that using two prime numbers multiplied together makes a much better key than any old number, because it has only four factors. One, itself, and the two primes that it is a product of. This makes the code much harder to crack.

Page 11: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

INSECTS

Primes only use is in the computer world, and we still don’t have any use for primes in the physical world, however some say that some insects do.

Some insects will live in the ground for a number of years, and come out after 13 or 17 years. Both 13 and 17 are prime numbers, and by emerging at these times, it makes it harder for predators to adapt and kill the insects, and therefore more of them survive.

One bug that does, this is the cicada.

Page 12: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

EARLY PRIMES

Writers thought that the numbers of the form 2n-1 were prime for all primes n, but in 1536 Hudalricus Regius showed that

211-1 = 2047 was not prime (it is 23*89).

By 1603 Pietro Cataldi correctly verified that 217-1 and 219-1 were both prime, but incorrectly stated 2n-1 was also prime for 23, 29, 31 and 37.

In 1640 Fermat showed Cataldi was wrong about 23 and 37. In 1738 Euler showed Cataldi was also wrong about 29. However, Euler also showed Cataldi's statement about 31 was correct.

Page 13: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

MERSENNE PRIME

A French Monk, Marin Mersenne stated that the numbers 22nn-1 were prime for

n = 2, 3, 5, 7, 13, 17, 19, 31, 67, 127 and 257

Mersenne's assumption was incorrect but still got his name attached to these numbers.

When 2n-1 is prime it is said to be a Mersenne prime.

It was not until over 100 years later, in 1750, that Euler verified the next number on Mersenne's and Regius' lists, 231-1, was prime.

Page 14: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

...

A century later in 1876, Lucas verified 2127-1 was also prime. Seven years later Pervouchine showed 261-1 was prime, which Mersenne missed.

In the early 1900's Powers (computer software) showed that Mersenne also missed the primes 289-1 and 2107-1. Finally, by 1947 Mersenne's range, n < 258, had been completely checked and it was determined that the correct list is:

n = 2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107 and 127.

Page 15: P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.

LARGEST KNOWN PRIME

The largest known prime verified before computers was in 1951.

Ferrier found the prime (2148+1)/17=

20988936657440586486151264256610222593863921

The largest known prime now is a 12,978,189 digit Mersenne prime 243112609-1 which was found in August 2008.