Prime number algo... what's wrong?

Rene Pijlman reply.in at the.newsgroup
Sat Mar 22 14:52:55 CET 2003


L. B.:
>        if test != 0:
>            x += 1 #still may be prime so go on trying
>        elif test == 0:
>            mayP += 1 #is not prime, test the second prime candidate
>        else:

Hmmm... so if test is not not 0 and it's not 0, what else can it
be? :-)

-- 
René Pijlman




More information about the Python-list mailing list