#include <stdio.h>#include<math.h>int main(){ int y,i,count=0; scanf("%d",&y); for(i=2;i<y;i++) { if(y%i==0) { count++; } } if(count==0 && y!=1) { printf("YES"); } else { printf("NO"); } return 0;}
No comments