C-study/04-1/5/5.c
2021-11-17 17:19:39 +08:00

17 lines
207 B
C

#include<stdio.h>
int main(){
int n,zc=0;
scanf("%d",&n);
for(int i=2;i<=n-1;i++){
if(n%i==0){zc=1;break;}
}
if(zc)printf("%d is not prime.",n);
else printf("%d is prime.",n);
return 0;
}