#include <iostream>
#include <cmath>
using namespace std;
int Su(int a)
{
	for(int i=2;i<=sqrt(a);i++)
    {
        if(a%i==0)return 0;
    }
    return 1;
}

int main() {
    int a;
   while(cin>>a)
   {
    if(a<=0||a==1)
    cout<<"no"<<endl;
    
    else if(Su(a)==1)
    {
        cout<<"yes"<<endl;
    }

    else {
    cout<<"no"<<endl;
    }
   }
   
}