Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122124 刘益梵 判断质数(使用while循环) C++ Wrong Answer 1 MS 272 KB 192 2025-06-14 11:56:44

Tests(1/10):


Code:

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


Run Info:

------Input------
560
------Answer-----
No
------Your output-----
Yes