Run ID:107124
提交时间:2025-01-17 13:35:21
#include <bits/stdc++.h> using namespace std; int main (){ int a[102]={0}; for(int i=2;i<=100;i++){ for(int j=i;j<=100;j++){ if(j%i==0){ a[j]=!a[j]; } } } for(int z=1;z<=100;z++){ if(a[z]==0){ cout<<z<<" "; } } return 0; }