Fix non-termination of (isPrime 1).

I caught a non-termination of (isPrime 1) and made a simple fix for that.

Thanks for sharing the code!