@geocalc33
oeis.org/A002386 A couple of weeks ago I was experimenting with various prime generators in Python. This one is quite compact, and it's ok for small primes, but it gets a bit sluggish for primes > 1000000. I have
much faster generators that easily handle larger numbers.