The algorithm is lifted straight from the standard Python documentation, presumably as a toy example to illustrate the quirky "else" clause of Python loop statements.
In reply to Re^2: Perl vs. Python for prime numbers
by eyepopslikeamosquito
in thread Perl vs. Python for prime numbers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |