怎么错了???

kj123 2024-08-29 8:37:52 3

#include
#include
using namespace std;
int main(){
int a,b;
cin>>a>>b;
for(int i=a;i<=b;i++){
int f=1;
for(int j=1;j<=sqrt(i);j++){
if(i%j==0){
f=0;
}
}
if(f==1){
cout<<i<<endl;
}
}
return 0;
}

{{ vote && vote.total.up }}

共 2 条回复

CPP 刷题王

不需要 \

CPP 刷题王
建议你在代码开头加上
```cpp
代码结尾加上
\```

然后你的 应该从 开始。