Added a prime sieve function.