Adding Sieve of Eratosthenes in Java