Several implementations of sieve of Eratosthenes, given in "The Genuine Sieve of Eratosthenes" by Melissa E. O'Neil. This is written for Lambda kai held on December 18, 2012.
If this doesn't compile because of Stack Overflow, please increase the stack size of JVM.