John Machin wrote: > On 20/07/2006 6:05 AM, John Machin wrote: > > On 20/07/2006 1:58 AM, [EMAIL PROTECTED] wrote: > >> def is_prime n: > > > > Syntax error. Should be: > > def is_prime n: > > Whoops! Take 2: > > Should be: > > def is_prime(n):
Sorry for that, I was not able to cut-paste the code at the moment, and was in a hurry, I know it's bad. Thanks for "xrange", I tried and it works fine. -- http://mail.python.org/mailman/listinfo/python-list