add a plain prime sieve implementation for comparison