implement sieve of eratosthenes