(re)Changed Primes.java function to match exercice conventions