Re: Finding prime numbers

2007-09-20 Thread Shawn Milochik
On 9/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Sep 19, 1:31 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: > > > If you'd just search the archives, you would have found this: > > > > >http://groups.google.com/group/comp.lang.python/browse_thread/thread/... > > > > Yeah, but that's n

Re: Finding prime numbers

2007-09-20 Thread kyosohma
On Sep 19, 1:31 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: > > If you'd just search the archives, you would have found this: > > >http://groups.google.com/group/comp.lang.python/browse_thread/thread/... > > Yeah, but that's no fun. ;o) Yes! Never do what you can fool others into doing for you

Re: Finding prime numbers

2007-09-19 Thread Shawn Milochik
> If you'd just search the archives, you would have found this: > > http://groups.google.com/group/comp.lang.python/browse_thread/thread/b134b2235e9c19a6/34857fb0b0b2a4b5?lnk=gst&q=prime+number&rnum=1#34857fb0b0b2a4b5 Yeah, but that's no fun. ;o) -- http://mail.python.org/mailman/listinfo/python

Re: Finding prime numbers

2007-09-19 Thread kyosohma
On Sep 19, 12:15 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: > Okay, I caught one bug already myself: > > for y in range(3,(math.sqrt(x) + 1)): > > should be > > for y in range(3,(int(math.sqrt(x)) + 1)): If you'd just search the archives, you would have found this: http://groups.google.com/