#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, P;
  cin >> N >> P;
  int ans = 0;
  for (int ii = 2; ii <= P; ii++) {
    ii--;
    int cnt = 0;
    if (N % ii == 0) {
      N / ii;
      cnt++;
    } else {
      if (cnt > N) ans = ii;
      ii++;
    }
    cout << ans << endl;
  }
}
