Just for fun (not particularly useful because it's slow): here is a SoE implementation in SQL (postgres). (I didn't compare with the above; it's undoubtedly (very) much slower)
In reply to Re^2: Sieve of Eratosthenes with closures
by erix
in thread Sieve of Eratosthenes with closures
by thinker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |