提交时间:2024-05-05 17:07:19
运行 ID: 145770
#include<bits/stdc++.h> using namespace std; int main(){ cout<<"2"<<" "<<"3"<<" "<<"5"<<" "<<"7"<<" "<<"11"<<" "<<"13"<<" "<<"17"<<" "<<"19"<<" "; 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&&i%11!=0&&i%12!=0&&i%13!=0&&i%14!=0&&i%15!=0&&i%16!=0&&i%17!=0&&i%18!=0&&i%19!=0&&i%20!=0){ cout<<i<<" "; } } }