hello friends, am vijay shankar.. am new to this forum as well as c program. so pls help me out by correcting me. i have written a program for prime, pls do tell me my mistakes.
main()
{
int i,n;
printf("number:");
scanf("%d",&n);
for(i=2;i<n;i++)
{
if(n%i==0)
break;
else continue;
}
if(n==i)
printf("\nits prime");
else
printf("\nnot prime");
getch();
}