Number theory, sieve twice