C++ Program for Prime Number Between 1 to n. Any natural number which can be divisible by itself or the number which has only two factors i.e 1 and the num.