Run ID:75703

提交时间:2024-05-28 19:16:24

#include <bits/stdc++.h> using namespace std; int main (){ int a,e=1; cin>>a; for(int i=2;i<=a-1;i++){ if (a%i==0){ e=0; } } if(e==0){ cout<<"No"; }else{ cout<<"Yes"; } return 0; }