Incremental Sieve in C++ - Idea from Melissa O Neil - http://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf