17 lines
207 B
C
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;
|
|
}
|