Updated Prime.java