#include<stdio.h>
#include<conio.h>
void main()
{
int n,j=0,i,z=0;
clrscr();
printf("\n Please Give The Value of N: ");
scanf("%d",&n);
for(i=2;i<=9;i++)
{
if(i!=n && n%i==0)
z=z+1;
}
if(z==0)
printf("\n %d IS PRIME NUMBER ",n);
else
printf("\n %d IS NOT PRIME NUMBER ",n);
getch();
}
************************* OUTPUT *************************************
Please Give The Value of N: 13
13 IS PRIME NUMBER
Please Give The Value of N: 9
9 IS NOT PRIME NUMBER
***********************************************************************