Prime number algo... what's wrong?
lorenzo at mysurname.net
Sat Mar 22 15:02:41 CET 2003
"Rene Pijlman" <reply.in at the.newsgroup> ha scritto nel messaggio
news:viqo7v85ijk78p4pf5c27iatq2t367v8vg at 4ax.com...
> 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
> > else:
> Hmmm... so if test is not not 0 and it's not 0, what else can it
> be? :-)
I'll work with the neurons i have left on it! ;-)
More information about the Python-list