#include <iostream>#include <math.h>#include <stdlib.h>
using namespace std;
int main(){ int n, i, j, prim, y; cin >> n; i = 2; while (i < n) { prim = 1; for (j = 2; j < i; j++) if (i % j == 0) prim = 0; if (prim == 1) { y = j; cout << y << " "; } i++; }
return 0;}