http://www.perlmonks.org?node_id=426154


in reply to Prime number generation, and range operator

Well, it needs some help... No time to test at the moment, but I'd like to mention that this wheel has already been invented:

http://search.cpan.org/~cwest/ppt-0.14/src/primes/primes


Update: After reading jdalbec's brilliantly concise reply, I'd like to share a link to some wisdom/magic on this topic, located exactly where you'd expect:

http://www.stonehenge.com/merlyn/UnixReview/col26.html