cleanup
solves #27 at the cost of imprecision in actual primes generated