Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
71026 任斌 13判断质数 C++ Runtime Error 1 MS 264 KB 328 2024-04-20 21:46:34

Tests(0/10):


Code:

#include<iostream> using namespace std; int main() { int n,i; cin>>n; if(n==1) cout<<"No"<<endl; else{ for(int i=2;i<n;i++) break; if(n%i==0) cout<<"Yes"<<endl; else cout<<"No"<<endl; } return 0; }


Run Info:

Runtime Error:Floating point exception