Added prime sieve algorithm