Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77574 sh25_zhuhy 判断一个数是否为质数 C++ 通过 0 MS 248 KB 245 2025-12-26 14:28:23

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int a,n,bomb; cin>>a; n=1; for(bomb=1;bomb<a;bomb++){ if(a%bomb==0) n=bomb; } if(n==1) cout<<"yes"; else cout<<"no"; }


测评信息: