Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
374576 镇洋小学 曹玉涵 GESP:2023-6月等级2-T1-找素数 C++ Accepted 100 0 MS 272 KB 273 2025-02-10 17:10:38

Tests(5/5):


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


Judgement Protocol: