#include <stdio.h> int main() { int n,i; int ret=1; scanf("%d",&n); if(n1||n0){ ret=0; } for(i=2;i<n-1;i++){ if(n%i0){ ret=0; break; } } if(ret1){ printf("YE5"); } else if(ret==0){ printf("N0"); } return 0; }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account