#include <iostream>
#include <cmath>
using namespace std;
bool prime(long long x)
{
if(x == 2 || x == 3 || x == 5 || x == 7|| x == 11 || x == 13)
return true;
if(x < 2)
return false;
if(x % 2 == 0 || x % 3 == 0 || x % 5 == 0 || x % 7 == 0 || x % 11 == 0 || x % 13 == 0)
return false;
for(int i = 2;i <= sqrt(x);i++)
{
if(x % i == 0)
return false;
}
return true;
}
int main()
{
long long n;
cin >> n;
if(prime(n) == true)
cout << "yes";
else
cout << "no";
return 0;
}