#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  int n, k, p, nn;
  vector<int> ans;
  cin >> n >> k;
  nn = n;
  if (n / 2 > k || (n == 1 && k != 0)) {
    cout << -1 << endl;
    return 0;
  }
  p = k - (n / 2) + 1;
  ans.push_back(p);
  ans.push_back(p * 2);
  nn -= 2;
  p = 1;
  while (nn > 0) {
    if (p != ans[0] && p != ans[1] && p + 1 != ans[0] && p + 1 != ans[1]) {
      ans.push_back(p);
      ans.push_back(p + 1);
      nn -= 2;
      p += 2;
    } else {
      p += 100;
    }
  }
  for (int i = 0; i < n; i++) {
    if (ans[i] <= 0) {
      return -1;
    }
    cout << ans[i] << " ";
  }
  cout << endl;
}
