Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
343932 潘弘翊 GESP:2023-6月等级2-T1-找素数 C++ Accepted 100 0 MS 276 KB 255 2025-01-12 16:30:03

Tests(5/5):


#include<bits/stdc++.h> using namespace std; int main() { int n,s=0,b; bool a=true; cin>>b>>n; for (int i=b; i<=n; i++) { a=true; for (int j=2; j<i; j++) if (i%j==0) a=false; if (a==true) s++; } cout<<s; return 0; }


Judgement Protocol: