| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12694 | 苏莉雯 | 素数的个数 | C++ | Accepted | 100 | 134 MS | 264 KB | 257 | 2025-08-17 15:52:07 |
#include<bits/stdc++.h> using namespace std; int main() { int n,d,c=0,a=0; cin>>n>>d; for(int i=n; i<=d; i++) { c=0; for(int j=2; j<i; j++) { if(i%j==0) { c=1; break; } } if(c==0&&i!=1) { a++; } } cout<<a; }