*isprime*from main and then have that it pass the number over to another function called

*checknum*where if

*testnum % testnum -1==0*it prints number is prime and if

*testnumb % test numb >0*it should print out number is prime. i want a recursive function to decrease the number by one until one of the statements is true. here is what i have so far but still does not work.

#include <iostream> using namespace std; int testNum; int checknum (testNum) { if (testNum % testNum-1==0) cout << testNum "is not prime"; if (testNum % testNum-1>0) cout<< testNum "is prime"; } int isPrime ( int testNum ) { if (testNum== testNum) { cout << "The number " << testNum << "is prime"<<endl; return 1;} else checknum (testNum); } int main() { cout << "Please enter a number" << endl; cin >> testNum; isPrime(testNum); return 0; }