Re: prime number

2005-05-30 Thread Dale Hagglund
Sigh ... one of my intermediate versions of is_prime() returns True if the n is *not* prime, and false otherwise. The final version is correct, though. Dale. -- http://mail.python.org/mailman/listinfo/python-list

Re: prime number

2005-05-30 Thread Dale Hagglund
lostinpython> I'm having trouble writing a program that figures lostinpython> out a prime number. Does anyone have an idea on how lostinpython> to write it? [I can't quite tell from your posts what your level of programming knowledge is, so I've aimed low. If this was wrong, please