[Tutor] help with prime number program

Alan Gauld alan.gauld at freenet.co.uk
Mon Oct 31 18:15:53 CET 2005


> n = input("Enter a number")
> if n % 2 != 0 and n % 3 != 0:
>   print n, " Is a prime number"
> 
> Comments please.

According to this 25 is a prime number....

Alan G.



More information about the Tutor mailing list