Write a recursive function which would return true if the given number is prime and false if it is not.
Hint: a second parameter is used to indicate which number the function is currently assuming to be the divisor.
Write a recursive function which would return true if the given number is prime and false if it is not.
Hint: a second parameter is used to indicate which number the function is currently assuming to be the divisor.
Sample Input 1:
3Sample Output 1:
trueCreate a free account to access the full topic