isPrime() - recursive and iterative soln