不理解为什么出错
查看原帖
不理解为什么出错
1210460
封禁用户楼主2025/1/22 08:02
#include<bits/stdc++.h>
bool is_Prime(int n) {
	for(int i=2;i*i<=n;i++)
		if(n%i==0) return 0;
	return 1;
}
using namespace std;
int main(){
    int n;
    cin>>n;
    if(is_Prime(n)) cout<<"Yes";
    else cout<<"No";
    return 0;
}

请大佬帮我看看有什么问题?

2025/1/22 08:02
加载中...