On Aug 14, 8:25 pm, "Dr. Phillip M. Feldman" <pfeld...@verizon.net>
wrote:
> I wrote the following correct but inefficient test of primality for purposes
> of demonstrating that the simplest algorithm is often not the most
> efficient.  But, when I try to run the following code with a value of n that
> is large enough to produce a significant amount of running time, I get an
> out-of-memory error!

I don't think Python was created to keep mathematician's happy.
Although strangely enough, the creator holds a masters degree in
mathematics *and* computer science. Just another one of life's little
ironies ;)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to