#include <bits/stdc++.h>
using namespace std;
long long mode = pow(10, 9) + 7;
bool cmp(pair<long long, long long> x, pair<long long, long long> y) {
  return x.second < y.second;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long N, k;
  cin >> N >> k;
  long long n = N;
  if (n % 2) n--;
  if (N == 1) {
    if (k == 0) {
      cout << "1"
           << "\n";
    } else
      cout << "-1"
           << "\n";
    return 0;
  }
  long long z = k - (n / 2) + 1;
  if (z <= 0) {
    cout << "-1"
         << "\n";
  } else {
    vector<long long> ans;
    for (int i = 0; i < N; i++) {
      if (i == 0)
        ans.push_back(z);
      else if (i == 1)
        ans.push_back(2 * z);
      else {
        ans.push_back(i + 900000);
      }
    }
    for (auto i : ans) cout << i << " ";
    cout << "\n";
  }
  return 0;
}
