#include"stdio.h" main(){ int a = 0; int i;printf("请输入整数:"); scanf("%d",&a); for(i = 2;iif(a%i==0){printf("NO");break;} if(i==a) printf("YES"); }