Algorithms: Add Primes class using sieve of eratosthenes