Finished isPrime.js