#include <bits/stdc++.h>
using namespace std;
void jabru() {
  long long n, k;
  cin >> n >> k;
  vector<int> v(n, 0);
  int end = n - 1;
  long long o, t;
  if (end % 2 == 0) end--;
  long long mn = n / 2;
  if (mn > k) {
    cout << -1 << "\n";
    return;
  }
  if (n == 1) {
    if (k == 0) {
      cout << 1 << "\n";
      return;
    } else {
      cout << -1 << "\n";
      return;
    }
  } else {
    long long rem = k - (mn - 1);
    v[1] = 2 * rem;
    v[0] = rem;
    o = rem;
    t = 2 * rem;
  }
  int curr = 1;
  for (int i = 2; i < n; i += 2) {
    if (curr == o) curr++;
    if (curr == t) curr++;
    if (curr + 1 == o) curr += 2;
    if (curr + 1 == t) curr += 2;
    v[i] = curr;
    v[i + 1] = curr + 1;
    curr += 2;
  }
  if (n % 2) {
    v[n - 1] = curr;
  }
  for (auto x : v) cout << x << " ";
  cout << "\n";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  t = 1;
  while (t--) {
    jabru();
  }
  return 0;
}
