Various prime-number sieves, in Java