3 ms·
Re: the 'more Dynamic"' version, have you seen the amazing postponed sieve generator? This is the 'really Dynamic' version, it recursively treats all previous
by dahart 9y ago
Re: the 'more Dynamic"' version, have you seen the amazing postponed sieve generator?
This is the 'really Dynamic' version, it recursively treats all previous primes as a special case.
https://stackoverflow.com/questions/2211990/how-to-implement-an-efficient-infinite-generator-of-prime-numbers-in-python/10733621#10733621 https://stackoverflow.com/questions/2211990/how-to-implement...