What is a PRIME NUMBER?
” A Natural number greater than 1which has only two divisor 1 and itself is called prime number “.
5 is prime, because it has only two divisors 1 and itself.
C++ Program To Find Prime Numbers
using namespace std;
cout<<“ENTER NUMBER TO CHECK IT IS PRIME OR NOT : “;
cout<<” PRIME NUMBER \n”;
cout<<” NOT A PRIME NUMBER \n”;