Prime Number in C++

By | March 30, 2011

Here you learn how to check prime number in C++.

Prime number is a number which is only divided by 1 or itself.

Below is the C++ program to check whether a number is prime of not.


Prime Number in C++



Enter any number:7

7 is a Prime number

One thought on “Prime Number in C++

Leave a Reply

Your email address will not be published. Required fields are marked *