On 14/05/13 02:37, Dave Angel wrote:
def counting_primes(): primelist = [] for prime in range(2,1000): if isprime(prime): primelist.append(prime) return primelistActually no, since the OP's looking for the first 1000 primes not for all the primes under 1000.
Ah yes, I forgot that and didn't read the code properly, sorry. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
