On Sun, Jul 12, 2009 at 9:24 PM, Cameron Pulsford<cameron.pulsf...@gmail.com> wrote: > As far as the primes generator, it does not generate any non-primes. All > primes (except 2, 3 and 5) are in the form (6*x + 1, 6*x + 5) where is x is > [1, 2, ..., n]. The only time it doesn't generate a prime is when x + (1 or > 5) % 5 == 0. Which is what that last part is making sure doesn't happen. I'm > not a mathematician or anything so correct me if I'm wrong, but that's what > I've read. All you're doing is eliminating numbers divisible by 2,3, and 5. Your generator includes 49 (7 * 7), 77 (7*11), 91 (7*13), 121 (11*11), etc. -- http://mail.python.org/mailman/listinfo/python-list
- how to run the "main" section of another modul... Stef Mientki
- Re: how to run the "main" section of anot... Stef Mientki
- Re: how to run the "main" section of anot... Piet van Oostrum
- Re: how to run the "main" section of ... Stef Mientki
- Re: how to run the "main" section... Emile van Sebille
- Question about generators Cameron Pulsford
- Re: Question about generators Vilya Harvey
- Re: Question about generators Terry Reedy
- Re: Question about generators Cameron Pulsford
- Re: Question about generat... David Robinow
- Re: Question about generators John Machin
- Re: Question about generat... Cameron Pulsford
- Re: Question about generat... John Machin
- Re: Question about generat... Piet van Oostrum
- Re: Question about generators Mensanator
- Re: Question about generators Piet van Oostrum
- Re: how to run the "main" section of ... Aahz
- Re: how to run the "main" section of anot... Aahz