The sieve of eratosthenes named after its inventor the


Question: The sieve of Eratosthenes, named after its inventor, the Greek scholar Eratosthenes (276-194 B.C.E.), provides a way to find all prime numbers less than or equal to some fixed number n. To construct it, write out all the integers from 2 to n. Cross out all multiples of 2 except 2 itself, then all multiples of 3 except 3 itself, then all multiples of 5 except 5 itself, and so forth. Continue crossing out the multiples of each successive prime number up to √n. The numbers that are not crossed out are all the prime numbers from 2 to n. Here is a sieve of Eratosthenes that includes the numbers from 2 to 27. The multiples of 2 are crossed out with a /, the multiples of 3 with a \, and the multiples of 5 with a -.

1503_4.png

Use the sieve of Eratosthenes to find all prime numbers less than 100.

Solution Preview :

Prepared by a verified Expert
Mathematics: The sieve of eratosthenes named after its inventor the
Reference No:- TGS02364528

Now Priced at $10 (50% Discount)

Recommended (96%)

Rated (4.8/5)