[Tutor] Prime Numbers

Steven D'Aprano steve at pearwood.info
Thu Oct 7 12:29:12 CEST 2010

On Thu, 7 Oct 2010 12:41:07 pm Ryan Bridges wrote:
> Hi,
> I'm using Python 2.6.2 and I need to write a code so that when I use
> an input, it will say if the number is prime or not.  How do I do
> this?

Using the keyboard is probably the best way, although at a pinch you 
could copy and paste individual letters from another document.

We won't do your home work for you, but if you ask specific questions, 
we will be happy to help.

Steven D'Aprano

More information about the Tutor mailing list