#include<stdio.h>
void fun(int);
int main(void)
{
int a;
printf("请输入一个整数:");
scanf("%d",&a);
fun(a);
return 0;
}
void fun(int a)
{int i,j=0;
for(i=2;i<a;i++)
{if (a%i==0)
{j=0;
break;}
else
j=1;
}
if(j==1)
printf("this is a prime number!\n");
else
printf("this is not a prime number!\n");
}