Popular recipes by Maxim Krikun http://code.activestate.com/recipes/users/4168574/2011-10-10T07:49:08-07:00ActiveState Code RecipesYet another prime number sieve (Python)
2011-10-10T07:49:08-07:00Maxim Krikunhttp://code.activestate.com/recipes/users/4168574/http://code.activestate.com/recipes/577901-yet-another-prime-number-sieve/
<p style="color: grey">
Python
recipe 577901
by <a href="/recipes/users/4168574/">Maxim Krikun</a>
(<a href="/recipes/tags/sieve/">sieve</a>).
</p>
<p>A one-liner that returns the list of prime numbers up to n. The inner lambda is the sieve.</p>