[Tutor] prime test problem
nitin.162 at gmail.com
Sat Aug 21 15:45:03 CEST 2010
For this problem u will get lots of solutions on the net.
e.g wilson's theorem , sieve of eranthoses etc.
On Sat, Aug 21, 2010 at 7:05 PM, Roelof Wobben <rwobben at hotmail.com> wrote:
> I have to make a programm which can test if a number is a prime.
> I know a prime is a number which can only be diveded by 1 and itself.
> One way is was thinking about is to make a loop which try if % has output
> But that don't work.
> Can someone give me a hint what's the best approach is.
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor