new eratosthenes written in Java