Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
121642 唐俊逸 判断质数(使用while循环) C++ Wrong Answer 0 MS 268 KB 493 2025-06-07 18:49:01

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int i=2,N; cin>>i; while(i<N){ if(N%i==0){ cout<<"Yes"; return 0; } i++; } cout<<"No"; return 0; }


Run Info:

------Input------
157
------Answer-----
Yes
------Your output-----
No