Popular recipes by Mathijs Romans http://code.activestate.com/recipes/users/4179530/2011-10-08T23:26:24-07:00ActiveState Code RecipesFaster prime generator (C++)
2011-10-08T23:26:24-07:00Mathijs Romanshttp://code.activestate.com/recipes/users/4179530/http://code.activestate.com/recipes/577899-faster-prime-generator/
<p style="color: grey">
C++
recipe 577899
by <a href="/recipes/users/4179530/">Mathijs Romans</a>
(<a href="/recipes/tags/primes/">primes</a>, <a href="/recipes/tags/prime_generator/">prime_generator</a>).
</p>
<p>The sieve of Eratosthenes implemented in C++. I noticed <a href="http://code.activestate.com/recipes/576559-fast-prime-generator/">another recipe</a> that could be improved upon, making it faster and a bit prettier.</p>