#include<iostream>
using namespace std;
int main()
{
int i,a=0;
cin>>i;
if(i==1)
{
cout<<"false"<<endl;//1不是素数
}
else
{
for(int t=2;t<i;++t)
{
if(i%t==0)//判断是否为素数
{
a++;
break;
}
else;
}
if(a==0)
{
cout<<"yes"<<endl;
}
else
{
cout<<"false"<<endl;
}
}
}