Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata...

31
Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary TOPIC

Transcript of Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata...

Page 1: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

Why are Prime Numbers called prime & Sieve of Eratosthenes

Group Members – Umang ChandraSneh Lata GuptaShivam Rastogi

Rohan ChaudharyVivek Chaudhary

TOPIC

Page 2: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

What is a Prime Number?

Natural Number >

1

no positive divisors

other than 1 and itself

Prime Number

Page 3: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

A natural number greater than1 that is not a prime number is called a composite number. For example, 5 is prime because only 1 and 5 can divide it, whereas 6 is composite because it has the divisors 2,3, 1 and 6.

Page 4: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

IMPORTANCE OF PRIME NUMBERS

Cryptography

Algorithm “RSA”

Alien Communications

To send out signals to

Aliens

Mathematical Discussion

Mathematical Conversations,

jokes etc

Page 5: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

Why are they called Prime

– All other numbers (positive integers) are measured by primes, this makes primes first.

– We use the English word prime because the ancient Greeks saw them as multiplicatively first, so Billingsley translated Euclid's 'prôtos' as 'prime'.

– Other terms used for prime numbers – linear/ simple/ incomposite

Prôtos arithmos estin ho monadi monêi metroumenos - Euclid, (The Elements (book 7, definition 11)

Meaning- -is measured by a unit alone -are not multiples of other numbers

Also as we know that

?

Page 6: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

Prime numbers are thus the first numbers, the numbers from which the

other numbers all arise

Thus they are primary numbers and hence are called as:

Page 7: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

Method to find prime numbers in a given set of natural

numbers:

Eratosthenes’ Sieve or

Page 8: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

Eratosthenes(ehr-uh-TAHS-thuh-neez)

Eratosthenes was the librarian at Alexandria, Egypt in 200 B.C.

Note every book was a scroll.

Page 9: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.
Page 10: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

Eratosthenes(ehr-uh-TAHS-thuh-neez)

Eratosthenes was a Greek mathematician, astronomer, and geographer.He invented a method for finding prime numbers that is still used today.This method is called Eratosthenes’ Sieve.

Page 11: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

Eratosthenes’ Sieve

A sieve has holes in it and is used to filter out the juice.Eratosthenes’s sieve filters out natural numbers to find the prime numbers.

Page 12: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

Copyright © 2000 by Monica Yuskaitis

Page 13: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

Now lets see the main steps how to find the prime numbers using

the sieve of Eratosthenes’

Page 14: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

1 2 3 4 5 6 7 8 9 1011 12 13 14 15 16 17 18 19 2021 22 23 24 25 26 27 28 29 3031 32 33 34 35 36 37 38 39 4041 42 43 44 45 46 47 48 49 5051 52 53 54 55 56 57 58 59 6061 62 63 64 65 66 67 68 69 7071 72 73 74 75 76 77 78 79 8081 82 83 84 85 86 87 88 89 9091 92 93 94 95 96 97 98 99 100

1 – Cross out 1; it is not prime.

Page 15: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

Hint For Next Step

Remember all numbers divisible by 2 are even numbers.

Like 2,4,6,8,10,12,14………..

Page 16: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

1 2 3 4 5 6 7 8 9 1011 12 13 14 15 16 17 18 19 2021 22 23 24 25 26 27 28 29 3031 32 33 34 35 36 37 38 39 4041 42 43 44 45 46 47 48 49 5051 52 53 54 55 56 57 58 59 6061 62 63 64 65 66 67 68 69 7071 72 73 74 75 76 77 78 79 8081 82 83 84 85 86 87 88 89 9091 92 93 94 95 96 97 98 99 100

2 – Leave 2; cross out multiples of 2

Page 17: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

Hint For Next StepTo find multiples of 3, add the digits of a number; see if you can divide this number evenly by 3; then the number is a multiple of 3.

2 6 7Total of digits = 15

3 divides evenly into 15267 is a multiple of 3

Page 18: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

1 2 3 4 5 6 7 8 9 1011 12 13 14 15 16 17 18 19 2021 22 23 24 25 26 27 28 29 3031 32 33 34 35 36 37 38 39 4041 42 43 44 45 46 47 48 49 5051 52 53 54 55 56 57 58 59 6061 62 63 64 65 66 67 68 69 7071 72 73 74 75 76 77 78 79 8081 82 83 84 85 86 87 88 89 9091 92 93 94 95 96 97 98 99 100

3– Leave 3; cross out multiples of 3

Page 19: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

To find the multiples of 5 look for numbers that end with the digit 0 and 5.

Hint For the Next Step

385 is a multiple of 5& 890 is a multiple of 5

because the last digitends with 0 or 5.

Page 20: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

1 2 3 4 5 6 7 8 9 1011 12 13 14 15 16 17 18 19 2021 22 23 24 25 26 27 28 29 3031 32 33 34 35 36 37 38 39 4041 42 43 44 45 46 47 48 49 5051 52 53 54 55 56 57 58 59 6061 62 63 64 65 66 67 68 69 7071 72 73 74 75 76 77 78 79 8081 82 83 84 85 86 87 88 89 9091 92 93 94 95 96 97 98 99 100

4– Leave 5; cross out multiples of 5

Page 21: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

1 2 3 4 5 6 7 8 9 1011 12 13 14 15 16 17 18 19 2021 22 23 24 25 26 27 28 29 3031 32 33 34 35 36 37 38 39 4041 42 43 44 45 46 47 48 49 5051 52 53 54 55 56 57 58 59 6061 62 63 64 65 66 67 68 69 7071 72 73 74 75 76 77 78 79 8081 82 83 84 85 86 87 88 89 9091 92 93 94 95 96 97 98 99 100

5– Leave 7; cross out multiples of 7

Page 22: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

1 2 3 4 5 6 7 8 9 1011 12 13 14 15 16 17 18 19 2021 22 23 24 25 26 27 28 29 3031 32 33 34 35 36 37 38 39 4041 42 43 44 45 46 47 48 49 5051 52 53 54 55 56 57 58 59 6061 62 63 64 65 66 67 68 69 7071 72 73 74 75 76 77 78 79 8081 82 83 84 85 86 87 88 89 9091 92 93 94 95 96 97 98 99 100

6–Leave 11; cross out multiples of 11

Page 23: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

1 2 3 4 5 6 7 8 9 1011 12 13 14 15 16 17 18 19 2021 22 23 24 25 26 27 28 29 3031 32 33 34 35 36 37 38 39 4041 42 43 44 45 46 47 48 49 5051 52 53 54 55 56 57 58 59 6061 62 63 64 65 66 67 68 69 7071 72 73 74 75 76 77 78 79 8081 82 83 84 85 86 87 88 89 9091 92 93 94 95 96 97 98 99 100

All the numbers left are prime

Page 24: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

The Prime Numbers from 1 to 100 are as follows:

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

79,83,89,97

Page 25: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

Similarly if we want to find the years of our century

i.e.2000-2099 which are prime numbers we follow the same step

by first making the grid of numbers and then crossing the

years which are not prime using the above stated method.

Page 26: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

2000 2001 2002 2003 2004 2005 2006 2007 2008 2009

2010 2011 2012 2013 2014 2015 2016 2017 2018 2019

2020 2021 2022 2023 2024 2025 2026 2027 2028 2029

2030 2031 2032 2033 2034 2035 2036 2037 2038 2039

2040 2041 2042 2043 2044 2045 2046 2047 2048 2049

2050 2051 2052 2053 2054 2055 2056 2057 2058 2059

2060 2061 2062 2063 2064 2065 2066 2067 2068 2069

2070 2071 2072 2073 2074 2075 2076 2077 2078 2079

2080 2081 2082 2083 2084 2085 2086 2087 2088 2089

2090 2091 2092 2093 2094 2095 2096 2097 2098 2099

21st Century 2000-2099

Page 27: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

2000 2001 2002 2003 2004 2005 2006 2007 2008 2009

2010 2011 2012 2013 2014 2015 2016 2017 2018 2019

2020 2021 2022 2023 2024 2025 2026 2027 2028 2029

2030 2031 2032 2033 2034 2035 2036 2037 2038 2039

2040 2041 2042 2043 2044 2045 2046 2047 2048 2049

2050 2051 2052 2053 2054 2055 2056 2057 2058 2059

2060 2061 2062 2063 2064 2065 2066 2067 2068 2069

2070 2071 2072 2073 2074 2075 2076 2077 2078 2079

2080 2081 2082 2083 2084 2085 2086 2087 2088 2089

2090 2091 2092 2093 2094 2095 2096 2097 2098 2099

Page 28: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

Thus the prime numbers in this century are:

2003, 2011, 2017, 2027, 2029, 2039, 2053, 2063, 2069, 2081, 2083, 2087, 2089, 2099TOTAL 14 SUCH

YEARS WHICH ARE PRIME

Page 29: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

It’s one of the educational advantage is that it helps to develop our ability to see and extend pattern.

It is a good method to quickly make a short list of prime no.s.

It is the best intuitive method of finding a list of prime no.s.

ADVANTAGES OF THE SIEVE OF ERATOSTHENES

Page 30: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

It’s disadvantage is that in this method we have to allocate the array at the start and that uses a bunch of memory.

It is a time consuming method because if we want to make a long list of prime no.s then it can take a lot of time.

DISADVANTAGES OF THE SIEVE OF ERATOSTHENES

Page 31: Why are Prime Numbers called prime & Sieve of Eratosthenes Group Members – Umang Chandra Sneh Lata Gupta Shivam Rastogi Rohan Chaudhary Vivek Chaudhary.

THANK YOU