#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  int flg = 0;
  int count = 0;
  cin >> n;
  for (int i = 2; i < n + 2; i++) {
    cout << i << "\n" << endl;
  }
  for (int i = 2; i < n + 2; i++) {
    for (int j = 2; j <= sqrt(i) + 1; j++) {
      if (i % j == 0 && i != j) {
        flg = 1;
      }
    }
    if (flg == 0) {
      count = count + 1;
    }
    flg = 0;
  }
  cout << count << endl;
  return 0;
}
