Question: I need help with a c++ recursive function, that takes two parameters that are integer and then it'll return a boolean true if the value
I need help with a c++ recursive function, that takes two parameters that are integer and then it'll return a boolean true if the value is prime, or it will return a false if it is not a prime. the first integer that is entered should be the number being tested and the second one being a counter where it is counter that starts for example at x-1 and it'll decrement every iteration and will be used as the divisor to test the primes. If you could add a bit of comments to explain a bit of code as I am still learning the logic behind coding I would appreciate this very much.
Thank you I appreciate the help.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
