#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  long long int n, k;
  cin >> n >> k;
  if (n / 2 > k or (n == 1 and k != 0)) {
    cout << -1;
    return 0;
  }
  vector<long long int> outp;
  set<long long int> hadThem;
  if (k - (n / 2ll) > 0ll) {
    outp.push_back(k - (n / 2ll) + 1ll);
    hadThem.insert(outp.back());
    outp.push_back(outp.back() * 2ll);
    hadThem.insert(outp.back());
  }
  for (long long int i = 1000000000ll; outp.size() != n; i--)
    if (!hadThem.count(i)) outp.push_back(i);
  for (auto &p : outp) cout << p << " ";
  return 0;
}
