splitting up the sieve in steps