Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
354386 | 胡珂 | 【C2-8】判断素数 | C++ | Compile Error | 0 | 0 MS | 0 KB | 299 | 2025-10-02 13:51:46 |
#include <bits/stdc++.h> using namespace std; bool s(int x) { if(x<=1) return 0; if(x==2) return 1; for(int i=2;i*i<=x;i++){ if(x%i==0){ return 0; } } return 1; } int main(){ for(int i=;i<b;i++){ if(s(i)){ cout<<"T"; }else{ cout<<"F"; } }return 0; }