Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
110249 王烁茗 判断素数 C++ Wrong Answer 1 MS 268 KB 503 2025-02-15 15:33:06

Tests(0/1):


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 z=2,a,s=1; cin>>a; while(z<=a/2) { if(a%z==0) { s=0; break; } z++; } if(s==0) cout<<"no prime"; else cout<<"prime"; return 0; }


Run Info:

------Input------
23496801
------Answer-----
not prime
------Your output-----
no prime