how to find prime numbers and composite numbers by using the method ' Sieve of Erathosthenes' till 100.
Answers
Answered by
1
Answer:
To discover the first 25 prime numbers, we’ll sift out all the composite numbers between 1 and 100 using multiples.
Begin by listing out the numbers from 1 to 100.
Now erase all of the multiples of 2, except 2 itself.
Next erase all multiples of 3, 5 and 7, except for 3, 5 and 7 themselves.
There are no multiples of 11, 13, 17, 19, … left on the list. Finally remove 1 since it isn’t prime. What’s left is the first 25 prime numbers.
hope it helps
Similar questions