PyEuler
Mark Dickinson
dickinsm at gmail.com
Mon Feb 25 13:57:46 EST 2008
On Feb 25, 11:25 am, bearophileH... at lycos.com wrote:
> This is the first time I write something that looks like a little
> rant :-) Surely I'll be wrong in many points, but I presume this isn't
> going to damage people, so...
Agreed on all points. :-) This looks a lot like someone trying to
write
Haskell in Python. And that's a truly horrible way of finding a least
common multiple: much better to do lcm(a, b) = a*(b//gcd(a, b)), with
gcd computed using the usual algorithm (written *iteratively*, not
recursively).
Mark
More information about the Python-list
mailing list