#include <bits/stdc++.h>
using namespace std;
const double mth_pi = 2 * acos(0.);
int main() {
  int n, k;
  cin >> n >> k;
  if (n == 1) {
    if (k == 0)
      cout << "1\n";
    else
      cout << "-1\n";
    return 0;
  }
  if (k < n / 2) {
    cout << "-1\n";
    return 0;
  }
  if (n < 4) {
    vector<int> a;
    a.push_back(k), a.push_back(2 * k);
    if (n == 3) a.push_back(2 * k + 1);
    for (int t = 0; t < (int)a.size(); t++) cout << a[t] << ' ';
    cout << endl;
    return 0;
  }
  bool f = n & 1;
  n /= 2;
  vector<long long> a;
  for (int t = 1; t < (int)n; t++)
    a.push_back(2ll * t - 1), a.push_back(2ll * t);
  k -= n - 1;
  for (long long t = 1; t < (long long)1000000000; t++) {
    if (t * k > a[(int)a.size() - 1]) {
      a.push_back(t * k), a.push_back((t + 1) * k);
      break;
    }
    if (t * k <= 0) break;
  }
  if (f) a.push_back(a[(int)a.size() - 1] + 1);
  if (a[(int)a.size() - 1] <= 0) {
    cout << "-1\n";
    return 0;
  }
  for (int t = 0; t < (int)a.size(); t++)
    cout << a[t] << " \n"[t == (int)a.size() - 1];
  return 0;
}
