Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4651 fs_5028 13判断质数 C++ Accepted 0 MS 260 KB 213 2024-08-26 18:32:57

Tests(10/10):


Code:

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