Input
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,flag=0;
clrscr();
printf("Enter the Number to be checked\n");
scanf("%d",&n);
for(i=2;i<n/2;i++)
{
if(n%i==0)
{
flag=1;
break;
}
}
if(flag==0) printf("Number is prime");
if(flag==1) printf("Number is not prime");
getch();
}