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.

Slides:



Advertisements
Similar presentations
Copyright © Cengage Learning. All rights reserved.
Advertisements

Prime Numbers and How to Avoid Them Pi Mu Epsilon April 19, 2012 CWRU.
Ch. 10: What is a number?. MAIN DEFINITION OF THE COURSE: A symmetry of an object (in the plane or space) means a rigid motion (of the plane or space)
Chapter 5 Number Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Section 4.1: Primes, Factorization, and the Euclidean Algorithm Practice HW (not to hand in) From Barr Text p. 160 # 6, 7, 8, 11, 12, 13.
Whiteboardmaths.com © 2004 All rights reserved
Euclidean Number theory From the Algorithm to the Basic Theory of Numbers.
PRIME FACTORIZATION USING FACTOR TREES!.
5.1 Number Theory. The study of numbers and their properties. The numbers we use to count are called the Natural Numbers or Counting Numbers.
Thinking Mathematically
22C:19 Discrete Structures Integers and Modular Arithmetic
Chapter Primes and Greatest Common Divisors ‒Primes ‒Greatest common divisors and least common multiples 1.
The Fundamental Theorem of Arithmetic (2/12) Definition (which we all already know). A number greater than 1 is called prime if its only divisors are 1.
Prime Numbers – True/False. 3. There are infinitely many primes. True We can prove this by assuming there aren’t: Multiply all the primes together,
22C:19 Discrete Math Integers and Modular Arithmetic Fall 2010 Sukumar Ghosh.
Basic properties of the integers
Induction and recursion
The Primal Enigma of Mersenne Primes By Irma Sheryl Crespo Proof and its examples, puzzle, and the overall presentation by Irma Crespo. Are Mersenne Primes.
More Number Theory Proofs Rosen 1.5, 3.1. Prove or Disprove If m and n are even integers, then mn is divisible by 4. The sum of two odd integers is odd.
Elementary Number Theory and Methods of Proof. Basic Definitions An integer n is an even number if there exists an integer k such that n = 2k. An integer.
The essential quality of a proof is to compel belief.
Copyright © Cengage Learning. All rights reserved.
Fundamental Theorem of Arithmetic. Euclid's Lemma If p is a prime that divides ab, then p divides a or p divides b.
Properties of the Integers: Mathematical Induction
ELEMENTARY NUMBER THEORY AND METHODS OF PROOF
Chapter Number Theory 4 4 Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
BY MISS FARAH ADIBAH ADNAN IMK
CS 2210 (22C:019) Discrete Structures Logic and Proof Spring 2015 Sukumar Ghosh.
Divisibility October 8, Divisibility If a and b are integers and a  0, then the statement that a divides b means that there is an integer c such.
Section 5.1 Number Theory.
Arithmetic of Positive Integer Exponents © Math As A Second Language All Rights Reserved next #10 Taking the Fear out of Math 2 8 × 2 4.
CSCI 1900 Discrete Structures
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 3 (Part 2): The Fundamentals: Algorithms, the.
Section 2.2: Affine Ciphers; More Modular Arithmetic Practice HW (not to hand in) From Barr Textbook p. 80 # 2a, 3e, 3f, 4, 5a, 7, 8 9, 10 (Use affinecipherbreaker.
MATH 224 – Discrete Mathematics
BIRKDALE HIGH SCHOOL MATHEMATICS DEPARTMENT
Mathematics Review Exponents Logarithms Series Modular arithmetic Proofs.
Methods of Proof. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical theorems. Direct.
The Complexity of Primality Testing. What is Primality Testing? Testing whether an integer is prime or not. – An integer p is prime if the only integers.
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
Factors and Multiples. Definition of Factors and Multiples If one number is a factor of a second number or divides the second (as 3 is a factor of 12),
Cyclic Groups (9/25) Definition. A group G is called cyclic if there exists an element a in G such that G =  a . That is, every element of G can be written.
CompSci 102 Discrete Math for Computer Science
Computational Number Theory - traditional number theory Prime Numbers Factors Counting Factors D- functions.
By MUHAMMAD YUSRAN BASRI MATH ICP B Many early writers felt that the numbers of the form 2 n -1 were prime for all primes n, but in 1536 Hudalricus.
Chapter 2 (Part 1): The Fundamentals: Algorithms, the Integers & Matrices The Integers and Division (Section 2.4)
22C:19 Discrete Structures Integers and Modular Arithmetic Fall 2014 Sukumar Ghosh.
What use are prime numbers? ?. o All the primes, apart from 2, are odd numbers. o 1 is not a prime number. Why? o There are infinitely many prime numbers!
Factor A factor of an integer is any integer that divides the given integer with no remainder.
AF2. Turn off your phones Primes, gcd, some examples, reading.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 7 Functions Instructor: Hayk Melikyan Today we will review sections 7.3, 7.4 and 7.5.
Chapter 5. Section 5.1 Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If we can reach.
Slide Copyright © 2009 Pearson Education, Inc. 5.1 Number Theory.
AF2. Turn off your phones Primes, gcd, some examples, reading.
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
The Fundamentals: Algorithms, Integers, and Matrices CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Chapter 4 With Question/Answer Animations 1. Chapter Summary Divisibility and Modular Arithmetic - Sec 4.1 – Lecture 16 Integer Representations and Algorithms.
Factors, Primes & Composite Numbers. Definitions Product – An answer to a multiplication problem. 5 x 6 = 30 Product.
Section 5.1 Number Theory.
PowerPointmaths.com © 2004 all rights reserved
Chapter 5: Number Theory
Section 5.1 Number Theory.
Section 5.1 Number Theory.
Induction and recursion
Copyright © Cengage Learning. All rights reserved.
Elementary Number Theory & Proofs
Maths Unit 2 - Multiples, factors & primes
From the last time: gcd(a, b) can be characterized in two different ways: It is the least positive value of ax + by where x and y range over integers.
Maths Unit 1 (F) - Number Multiples Primes
Maths Unit 7 - Multiples, Factors, Primes & Negatives
Presentation transcript:

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 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?...

... 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.

E UCLID ’ S P RIMES 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.

E UCLID ’ S P ROOF oCoCall the primes in our finite list p 1, p 2,..., p r. oLoLet P be any common multiple of these primes plus one (for example, P = p 1 p 2...p r +1). oNoNow 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. oNoNotice p can not be any of p 1, p 2,..., p r, otherwise p would divide 1, which is impossible. oSoSo this prime p is some prime that was not in our original list. Either way, the original list was incomplete.

* oNoNote that what is found in this proof is another prime - one not in the given initial set. oToThere is no size restriction on this new prime, it may even be smaller than some of those in the initial set. oFoFor example, if we begin with the set: {2, 3, 7, 43, 13, 139, } then P = oToThe new prime found would be 547, 607, 1033 or 31051, all of which are smaller than the last prime in the original set.

C AN N EGATIVE N UMBERS B E P RIME ? By the usual definition of prime for integers, negative integers can not be prime.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.

B UT, 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.

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.

U SES OF P RIMES 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 e n c o d ℮ 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.

I NSECTS 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.

EARLY PRIMES Writers thought that the numbers of the form 2 n -1 were prime for all primes n, but in 1536 Hudalricus Regius showed that = 2047 was not prime (it is 23 * 89). By 1603 Pietro Cataldi correctly verified that and were both prime, but incorrectly stated 2 n -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.

MERSENNE PRIME A French Monk, Marin Mersenne stated that the numbers n -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 2 n -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, , was prime.

... A century later in 1876, Lucas verified was also prime. Seven years later Pervouchine showed was prime, which Mersenne missed. In the early 1900's Powers (computer software) showed that Mersenne also missed the primes and 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.

LARGEST KNOWN PRIME The largest known prime verified before computers was in Ferrier found the prime ( )/17= The largest known prime now is a 12,978,189 digit Mersenne prime which was found in August 2008.