Little novice program written in Python
Raymond Hettinger
python at rcn.com
Thu Apr 24 22:23:35 EDT 2008
> What I would like is to receive some criticism to my code to make it more
> Python'esque and, possibly, use the resources of the computer in a more
> efficient way (the algorithm implemented below is the Sieve of Eratosthenes):
It looks like straight-forward code and is fine as it stands.
If you want to tweak it a bit, you can avoid using a flag like
"finished" by using a break-statement.
Raymond
More information about the Python-list
mailing list