Run ID:90805
提交时间:2024-09-16 16:48:26
#include<bits/stdc++.h> using namespace std; int main() { int v,n; bool a=true; cin>>n; if(n==2) a=true; else for(int b=2;b<=n;b++){ if(n%b==0){ a=false; break; } } if(a)cout<<"yes"; else cout<<"no"; return 0; }