#include<iostream> using namespace std; int main() {int n,d,ok,x,k; cin>>n; x=2; k=0; while(k<n) { ok=1; for(d=2;d<=x/2;d++) if(x%d==0) ok=0; if(ok) { cout<<x<<" "; k++; } x++; } system("pause"); return 0; }