Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140611 范恒恺 13判断质数 C++ Accepted 0 MS 268 KB 177 2025-12-17 19:42:53

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; scanf("%d",&n); for(int i=2;i<=n-2;i++){ if(n%i==0){ cout<<"No"; return 0; } } printf("Yes"); }