[Tutor] Printing prime numbers

2010-09-30 Thread delegbede
Hi all, I am trying to write a function that prints out which number is prime in range (1,500) The function would check thru and the print out something like 1 is prime 2 is prime 3 is prime 4 is not 5 is prime Please help me. Thank you. Sent from my BlackBerry wireless device from MTN

Re: [Tutor] Printing prime numbers

2010-09-30 Thread Shashwat Anand
On Thu, Sep 30, 2010 at 5:27 PM, delegb...@dudupay.com wrote: Hi all, I am trying to write a function that prints out which number is prime in range (1,500) The function would check thru and the print out something like 1 is prime 2 is prime 3 is prime 4 is not 5 is prime Please help

Re: [Tutor] Printing prime numbers

2010-09-30 Thread delegbede
Ok. I will do that as soon As I get back to my workstation. Sent from my BlackBerry wireless device from MTN -Original Message- From: Shashwat Anand anand.shash...@gmail.com Date: Thu, 30 Sep 2010 19:11:33 To: delegb...@dudupay.com Cc: tutor@python.org Subject: Re: [Tutor] Printing prime

Re: [Tutor] Printing prime numbers

2010-09-30 Thread Emmanuel Ruellan
On Thu, Sep 30, 2010 at 1:57 PM, delegb...@dudupay.com wrote: 1 is prime One is /not/ prime. /pedant ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Printing prime numbers

2010-09-30 Thread Steven D'Aprano
On Thu, 30 Sep 2010 11:52:49 pm Emmanuel Ruellan wrote: On Thu, Sep 30, 2010 at 1:57 PM, delegb...@dudupay.com wrote: 1 is prime One is /not/ prime. /pedant There's no need to apologize for pedantry. Saying that one is prime is like saying that 2 is an odd number, or that glass is a type of