Added sieve algorithm.