sieve of eratosthenes with control parallelism