走过路过不要错过owo
2026-08-31 20:54:42
发布于:上海
5阅读
0回复
0点赞
owo
#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
int num=0;
for(int i=a;i<=b;i++){
bool c=true;
for(int j=2;j<i;j++){
if(i%j==0){
c=false;
break;
}
}
if(c==true)num++;
}
cout<<num;
}
祝大家考试顺利
这里空空如也







有帮助,赞一个