Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74360 张津赫轩 素数判断 C++ Wrong Answer 1 MS 284 KB 210 2024-05-25 10:00:46

Tests(0/1):


Code:

#include<iostream> using namespace std; int main(){ int a,c; cin>>a; for(int i=1;i<=a;i++){ if(a%i==0){ c++; } } if(c == 2){ cout<<"prime"; } else{ cout <<"not prime"; } }


Run Info:

------Input------
9973
------Answer-----
prime
------Your output-----
not prime