first, we are going to understand the conceptual part of this algorithm after that we will be looking for the coding region of the sieve of Eratosthenes, ok.
great, first of all, we should have the question why use this algorithm?
here is the answer,...