#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:256000000")
using namespace std;
vector<int> ans;
int gcd(int a, int b) {
  while (b > 0) {
    int t = a % b;
    a = b;
    b = t;
  }
  return a;
}
int main() {
  long long n, k;
  cin >> n >> k;
  if (n == 1) {
    if (k == 0) {
      cout << 1 << endl;
    } else {
      cout << -1 << endl;
    }
    return 0;
  }
  if (n / 2 > k) {
    cout << -1 << endl;
    return 0;
  }
  long long crk = k - (n - 2) / 2;
  cout << crk << " " << crk * 2;
  ans.push_back(crk);
  ans.push_back(crk * 2);
  for (int i = 3; i <= n; ++i) {
    cout << " " << crk * 2 + i;
    ans.push_back(crk * 2 + i);
  }
  cout << endl;
  int ak = 0;
  ;
  for (int i = 0; i + 1 < (int((ans).size())); i += 2) {
    ak += gcd(ans[i], ans[i + 1]);
  }
  assert(ak == k);
  return 0;
}
