Implement ErathostenesSieve in java and test.