JUS No 5:
#include<stdio.h>
#include<math.h>
int main()
{
int n,num=1,i,s;
while(scanf("%d",&n))
{
if(n<=0)
break;
s=0;
if(n==1||n==2||n%2==0)
{printf("%d: no\n",num);num++;continue;}
for(i=2;i<n;i++)
{
if(n%i==0)
{s=1;break;}
}
if(s==0)
printf("%d: yes\n",num);
else
printf("%d: no\n",num);
num++;
if(num>=250)
break;
}
return 0;
}