Linear Sieve version