OJ-Problems-Source/QUSTOJ/1411.c
2016-10-27 19:32:37 +08:00

28 lines
503 B
C

#include <stdio.h>
int main()
{
long inc,i;
if(scanf("%d",&inc)!=1)
{
return -1;
}
for(i=2;i<inc;i++)
{
if(inc%i==0)
{
printf("0\n");
return 0;
}
}
printf("1\n");
return 0;
}
/**************************************************************
Problem: 1411
User: 1508080112
Language: C
Result: 正确
Time:0 ms
Memory:748 kb
****************************************************************/