Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
92963 吴彦晓 素数判断 C++ Runtime Error 0 MS 268 KB 211 2024-10-07 14:22:09

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a,cnt=0; cin>>a; for(int i=i;i<=a;i++){ if(a%i==0){ cnt++; } } if(cnt == 2){ cout<<"prime"; }else{ cout<<"not prime"; } }


Run Info:

Runtime Error:Floating point exception