Eratosthenes sieve algorithm