1 / 20

THE SIEVE OF ERATOSTHENES: Prime and Composite Numbers

THE SIEVE OF ERATOSTHENES: Prime and Composite Numbers. by Jan Harrison http://ellerbruch.nmu.edu/classes/CS255W04/cs255students/jharriso/P12/P12.html. Eratosthenes.

hedva
Download Presentation

THE SIEVE OF ERATOSTHENES: Prime and Composite Numbers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. THE SIEVE OF ERATOSTHENES:Prime and Composite Numbers by Jan Harrison http://ellerbruch.nmu.edu/classes/CS255W04/cs255students/jharriso/P12/P12.html

  2. Eratosthenes Eratosthenes was a Greek scholar who lived in the 3rd century B.C. During his life, he made many important contributions to the fields of mathematics, geography, philosophy, and astronomy.

  3. Among his contributions to mathematics (over 2,000 years ago), Eratosthenes is particularly well known for: • Calculating a surprisingly accurate measurement of the Earth’s circumference. • Devising the Sieve of Eratosthenes, a tool for finding prime numbers.

  4. Prime Numbers • A number is regarded as primeonly if it has exactly two factors: 1 and itself. For example: The number 2 has exactly two factors: 1 and itself (i.e., 1 and 2); therefore, it is a prime number.

  5. Composite Numbers • If a number is not prime, then it is composite. For example: The number 12 has six factors: 1, 2, 3, 4, 6, and itself (i.e., 1, 2, 3, 4, 6, 12); therefore, it is a composite number.

  6. The number 1: • is neither prime nor composite. Why do you think this is? [Hint: Look back at the defini-tion of a prime num-ber.]

  7. Prime or Composite? • Is the number 22 prime or composite? Why? • What about the number 39? • 7? • 77?

  8. The answers: • 22 is a composite number, as it has more than two factors (1, 2, 11). • 39 is a composite number, as it has more than two factors (1, 3, 13). • 7 is a prime number, as it has only two factors (1, 7). • 77 is a composite number, as it has more than two factors (1, 7, 11).

  9. 2 is the only even prime number. Why?

  10. Building Blocks Have you noticed that the factors of composite numbers are always prime numbers? The Fundamental Theorem of Arithmetic states that every natural number greater than 1 has one unique way of being represented as a product of its prime factors. For this reason, the prime numbers are sometimes called the “building blocks” of the natural numbers.

  11. Finding Prime Numbers The Sieve of Eratosthenes is a tool that will help you find prime numbers. [Note: A worksheet is available at the web page for this lesson, if you want to try this as you read along.]

  12. The Sieve of Eratosthenes generally looks something like this (depending on the range of numbers included): Image borrowed from http://educ.queensu.ca/~fmc/december2003/Sieve.html

  13. How to use the Sieve of Eratosthenes: • Since the number 1 is neither prime nor composite, draw a box around 1. • Circle the first unmarked number, 2, which is the first prime number. Then count by 2, crossing out each multiple of 2 (i.e., cross out 4, 6, 8, etc.—the rest of the even numbers). • Circle the next unmarked number, 3. Then count by 3, crossing out each multiple of 3 that has not already been crossed out (i.e., 9, 15, 21, etc.). • Continue in this manner, circling primes and crossing out composites, until you are done sieving.

  14. Sieved-out Prime Numbers After you are done sieving, any numbers that remain (have not been crossed out) are prime numbers. Do you see any patterns in the Sieve of Eratosthenes?

  15. Patterns One of the educational advantages of the Sieve of Eratosthenes is that it helps to develop your ability to see and extend patterns. Note the even numbers, for example. Do you see an actual pattern reflected in the table? What about multiples of 5?

  16. Other ways to mark the prime and composite numbers: Circling and crossing off numbers is just one way to mark the prime and composite numbers in a Sieve of Eratosthenes. Some people color-code the numbers (e.g., marking the multiples of 2 in red, 3 in green, etc.), as in the earlier illustration. This helps them to find and analyze patterns. Can you think of other ways that you might mark the primes and composites?

  17. Now that you’ve learned about the Sieve of Eratosthenes, do you see an error in this one shown to you earlier?

  18. Just for fun (after trying the worksheet), check out one or more of the following sites and their interactive activities relating to primes and/or the Sieve of Eratosthenes: Sieve of Eratosthenes: http://matti.usu.edu/nlvm/nav/frames_asid_158_g_4_t_1.html?open=instructions http://www.win.tue.nl/~ida/demo/c1s4ja.html http://ccins.camosun.bc.ca/~jbritton/sieve/jberatosapplet.htm Prime Number List http://ccins.camosun.bc.ca/%7Ejbritton/jbprimelist.htm Prime Factorization Machine http://ccins.camosun.bc.ca/%7Ejbritton/jbprimefactor.htm

  19. Sites to explore for more information on primes or Eratosthenes: The Prime Pages (University of Tennessee—Martin) http://www.utm.edu/research/primes Prime Numbers http://www.factmonster.com/ipka/A0876084.html World’s Largest Known Prime Number http://www.factmonster.com/ipka/A0920820.html Eratosthenes of Cyrene (University of St. Andrews) http://www-history.mcs.st-and.ac.uk/history/Mathematicians/Eratosthenes.html

  20. THE END

More Related