#include #include #include int main() { srand( time( NULL ) ); int counter = 0; int Number = (std::rand() % 146) + 5; std::cout << Number << std::endl; for(int i=1; i<=Number; i++){ if(Number % i == 0 ){ std::cout << "Divisor of the Number is:" << i << std::endl; counter ++; } } std::cout << "The Quantity of Divisors is:" << counter << std::endl; if(counter == 2){ std::cout << "THIS IS A PRIME NUMBER!"; } return 0; }