Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
72420 李雨昊 判断素数 C++ Output Limit Exceeded 1 MS 268 KB 257 2024-05-05 18:58:34

Tests(0/25):


Code:

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