Implemented Sieve of E in Java