Resize as required. Use BitSet instead of byte array for sieve of Atkin.
Cleanup.