#include <bits/stdc++.h>   using namespace std;   const int N = int(2e6);   int n;   bool used[N + 7];   int main() {     cin >> n;     for (int i = 2; i * i <= N; ++i) {       if (!used[i]) {         for (int z = i * i; z <= N; z = z + i) used[z] = true;       }     }     int cnt = 0;     for (int i = 2; i <= N; ++i)       if (!used[i]) {         printf( %d  , i);         ++cnt;         if (cnt == n) return 0;       }     return 0;   }   