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, wrote: > > 1 is prime > > One is /not/ prime. 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 meat. -- Steven D'A

Re: [Tutor] Printing prime numbers

2010-09-30 Thread Emmanuel Ruellan
On Thu, Sep 30, 2010 at 1:57 PM, wrote: > > 1 is prime > One is /not/ prime. ___ 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 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 Date: Thu, 30 Sep 2010 19:11:33 To: Cc: Subject: Re: [Tutor] Printing prime numbers On Thu, Sep 30, 2010 at 5:27 PM, wrote: > Hi

Re: [Tutor] Printing prime numbers

2010-09-30 Thread Shashwat Anand
On Thu, Sep 30, 2010 at 5:27 PM, 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 me. > Thank

[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 __