Added isPrime function
Added the cntPrimes function.