Void main()

{

int a,c=0,I,n;

clrscr();

printf("Enter number = n");

scanf("%d",&n);

for (I=0; I<=n; I++)

{

a = n%I;

if (a==0)

{

c=c+1;

}

}

if(c==2)

printf("The number is prime");

else

printf("It is not prime");

}

enjoy blurting :)

{

int a,c=0,I,n;

clrscr();

printf("Enter number = n");

scanf("%d",&n);

for (I=0; I<=n; I++)

{

a = n%I;

if (a==0)

{

c=c+1;

}

}

if(c==2)

printf("The number is prime");

else

printf("It is not prime");

}

enjoy blurting :)