#include #include int main(void) { long n,i; scanf("%ld",&n); for(i=2;i<=(long)sqrt(n);i++)if(n%i==0)break; puts(i<(long)sqrt(n)?"YES":"NO"); return 0; }