#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  int n, k;
  cin >> n >> k;
  if (n / 2 > k) {
    cout << -1 << endl;
    return 0;
  }
  if (n == 1) {
    if (k > 0) {
      cout << -1 << endl;
    } else
      cout << 1 << endl;
    return 0;
  }
  int t = (n - 2) / 2;
  cout << k - t << ' ' << 2 * (k - t);
  int f = 2 * (k - t) + 1;
  for (int i = 0; i < n - 2; i++) {
    cout << ' ' << f;
    f++;
  }
  cout << endl;
  return 0;
}
