Alongbar Daimary answered Hi! Here it the Program. #include<iostream.h> int CheckPrime(int number){ for(int I=2;I<number;I++){ if(number%I==0) return 0; } return 1; } void main() { int num=7; cout<<CheckPrime(num); }