C++ program to check prime number
In this program, we will learn how to check whether a given number is prime or not?
Prime numbers are those numbers which are divisible by itself only. Here, we will read an integer number and check whether it is Prime or Not, to check prime number we implemented a function isPrime() that will take integer number as argument and return 1 if it is primer else it return 0.
Program to check prime number in C++
Output
need an explanation for this answer? contact us directly to get an explanation for this answer