#include <bits/stdc++.h>
using namespace std;
map<int, bool> used;
int main() {
  int n, k;
  cin >> n >> k;
  if (n == 1) {
    if (k == 0)
      cout << "1" << endl;
    else
      cout << -1 << endl;
    return 0;
  }
  if (k < n / 2) {
    cout << -1 << endl;
    return 0;
  }
  int x = k - ((n - 2) / 2);
  cout << x << " " << 2 * x << " ";
  used[x] = used[2 * x] = 1;
  int co = 1;
  int i;
  for (i = 2; i < n; i++) {
    if (used[co] || used[co + 1]) {
      co++;
      i--;
      continue;
    }
    if (i == n - 1) {
      cout << 100000000 << endl;
      break;
    }
    cout << co << " " << co + 1 << " ";
    co += 2;
    i++;
  }
  cout << endl;
}
