Added isPrime, nextPrime, prevPrime and primes