Submit Time:2025-03-16 14:54:49

运行 ID: 390805

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c=0; cin>>a>>b; for(int i=a;i<=b;i++){ int d=1; for(int j=2;j<=sqrt(i);j++){ if(i%j==0){ d=0; break; } } c+=d; } cout<<c<<endl; return 0; }