Weird MemoryError issue

jedi200581 at yahoo.co.uk jedi200581 at yahoo.co.uk
Thu Jul 20 02:48:03 EDT 2006


John Machin wrote:
> On 20/07/2006 6:05 AM, John Machin wrote:
> > On 20/07/2006 1:58 AM, jedi200581 at yahoo.co.uk 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.




More information about the Python-list mailing list