On 2013-02-19, John Immarino <joh...@gmail.com> wrote:
> Thanks,Chris. I'm a newbie to Python and didn't realize that
> it's not as good at number crunching as some of the others. It
> does seem to do better than Basic with numbers in lists as
> opposed to arrays in Basic.

Python is good enough at number crunching for Project Euler. Its
data types and library make a few of the problems otherwise
uninteresting, in fact.

Sometimes, as in this case, memoization is good enough (a quick
look at my own code for this shows that's what I did, too). But
when it's a particularly good example of a Project Euler problem,
you'll need to do some mathematical analysis to improve your
approach, first.

But yeah, do not get in the habit of comparing your times to,
say, C++ programs. ;)

-- 
Neil Cerutti
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to