提交时间:2024-05-05 17:03:09

运行 ID: 145754

#include<bits/stdc++.h> using namespace std; int main(){ cout<<"2"<<" "<<"3"<<" "<<"5"<<" "<<"7"<<" "; for(int i=11;i<=100000;i++){ if(i%2!=0&&i%3!=0&&i%4!=0&&i%5!=0&&i%6!=0&&i%7!=0&&i%8!=0&&i%9!=0&&i%10!=0){ cout<<i<<" "; } } }