akshitagit / CPP

Repository for C++/C codes and algos.
https://github.com/akshitagupta15june
MIT License
493 stars 434 forks source link

Sieve of Eratosthenes #702

Open Masoom9587 opened 2 years ago

Masoom9587 commented 2 years ago

The sieve of Eratosthenes is one of the most efficient ways to find all primes smaller than n when n is smaller than 10 million or so #cpp #c++