Improved prime sieve, but still not fast enough.
Speed up the prime sieve by a ton - found solution.