sieve of eratosthenes

calculating primes using sieve of eratosthenes algorithm