Put the isPrime function in a program. Also include
a definition of function the nextPrime(n)
function from the preceding page. But this time, use
a flag to decide whether to keep going. Add some
tests of your own to see if nextPrime(n) seems
to be working.