Optimized `_opt_prime_sieve`