add -optimize
Add a prime number stream using a segmented sieve.

This implementation is intended to be somewhat efficient, although
there's still a lot of work to be done. It can find the ten-millionth
prime number in around ~8s using one thread on my machine.

The code is a bit ugly and not well-commented at the moment.