#include<bits/stdc++.h> using namespace std; int isprime(int n) { for(int i=2;i<n;i++) if(n%i==0) return 0; return 1; } int main() { int n; cin>>n; if(isprime(n)==1) cout<<"yes"<<endl; else cout<<"no"<<endl; return 0; }