#include<stdio.h> |
void
main() |
{ |
int n,i,c=0; |
printf("\n Enter the
Number : "); |
scanf("%d",&n); |
for(i=2;i<n;i++) |
{ |
if(n%i==0) |
{ |
c++; |
} |
} |
if(c==0) |
{ |
printf("\n %d is Prime Number",n); |
} |
else |
{ |
printf("\n %d is Not
Prime Number",n); |
} |
} |