#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
bool Judge(int n){
if(n<2){
return false;
}
else{
for(int i=2;i<=sqrt(n);++i){
if(n%i==0){
return false;
}
}
return true;
}
}
int main(){
int n;
while(scanf("%d",&n)!=EOF){
if(Judge(n)){
printf("yes");
}
else{
printf("no");
}
}
return 0;
}

京公网安备 11010502036488号