Run ID:156211
提交时间:2026-06-27 10:47:59
#include<bits/stdc++.h> using namespace std; int main(){ bool a[100]={}; for(int i=2;i<=100;i++){ for(int j=i;j<=100;j++){ if(j%i==0){ a[j]=!a[j]; } } } for(int i=1;i<=100;i++){ if(a[i]==0){ cout<<i<<' '; } } return 0; }