#include<iostream> using namespace std; int main(void) { int a,i,j; for (i=0;i<=1000;i=i++) for (i=0;i<=1000;i=i++) for (j=i+1; j<100; j++) if (a[i]&&a[j]%a[i]==0) a[j]=0; for (i = 1; i<100; i++) if (a[i]) printf("%d\t",a[i]); system("pause"); return 0; }