nextPrime.cpp - includes isPrime()