题解
2025-06-21 17:20:53
发布于:广东
1阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
if(N == 1){
cout<<"No";
}else{
int f = true;
for(int i = 2;i < N;i++){
if( N % i == 0) {
f = false;
break;
}
}
if(f == false) {
cout <<"No";
}else{
cout <<"Yes";
}
}
return 0;
}
这里空空如也
有帮助,赞一个