#include <bits/stdc++.h>
using namespace std;
int di[] = {0, 0, 1, -1, 1, 1, -1, -1};
int dj[] = {1, -1, 0, 0, 1, -1, 1, -1};
set<int> vis;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, k;
  cin >> n >> k;
  if (n == 1) {
    if (k == 0) {
      cout << 1;
    } else {
      cout << -1;
    }
    return 0;
  }
  if (n / 2 > k) {
    cout << -1 << '\n';
    return 0;
  }
  if (n / 2 == k) {
    for (int i = 0; i < n; i++) {
      cout << i + 1 << " ";
    }
    return 0;
  }
  int nGCD = k - (n / 2) + 1;
  n -= 2;
  cout << nGCD << " " << 2 * nGCD << " ";
  vis.insert(nGCD);
  vis.insert(2 * nGCD);
  int t = 1;
  while (n > 0) {
    if (n == 1) {
      cout << 1000000000;
    } else {
      while (vis.count(t) || vis.count(t + 1)) t++;
      cout << t << " " << t + 1 << " ";
      t += 2;
    }
    n -= 2;
  }
  return 0;
}
