On Mon, Nov 8, 2010 at 21:31, Richard D. Moores <rdmoo...@gmail.com> wrote:
> That sqrt(n) works for speeding up the finding of primes, but here we > want to use int(n/2) (and why didn't I think of that?), which results > in about a 2x speedup. See <http://tutoree7.pastebin.com/dyRC8vuX>. NO! Use int(n/2)+1 . I'll correct that in <http://tutoree7.pastebin.com/dyRC8vuX> and report back. Dick _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor