Create 1411.c

pull/45/head
Kirigaya Kazuto 2016-10-27 19:32:37 +08:00 committed by GitHub
parent ab379ffdb2
commit 76cdbf71bd
1 changed files with 27 additions and 0 deletions

27
QUSTOJ/1411.c Normal file
View File

@ -0,0 +1,27 @@
#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
****************************************************************/