Prime sieve debugged

I still need to do a bunch of optimization though.  This thing will take
hours, or possibly days to run.