Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
131907 李亭绪 13判断质数 C++ Wrong Answer 0 MS 280 KB 431 2025-10-01 18:47:41

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 a; int i; cin>>a; for(i=2;i<a;i++) { if(i%a==0) { } else { cout<<"no"; return 0; } } cout<<"yes"; return 0; }


Run Info:

------Input------
157
------Answer-----
Yes
------Your output-----
no