| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12248 | 罗炜翰 | 素数的个数 | C++ | Accepted | 100 | 163 MS | 264 KB | 279 | 2025-07-09 14:52:43 |
#include<bits/stdc++.h> using namespace std; int fun(int q){ for(int i=2;i<q;i++){ if(q%i==0){ return 0; } } return 1; } int main() { int n,m,x=0; cin>>n>>m; for(int i=n;i<=m;i++){ if(fun(i)==1){ x++; } } cout<<x; return 0; }