test for prime.java