#include <bits/stdc++.h>
using namespace std;
int gcd(int x, int y) {
  while (x != y) {
    if (x > y)
      return gcd(x - y, y);
    else
      return gcd(x, y - x);
  }
  return x;
}
int main() {
  ios::sync_with_stdio(false);
  int n, k, t = 1;
  cin >> n >> k;
  vector<int> arr;
  if (n / 2 > k) {
    cout << -1 << endl;
    return 0;
  }
  if (n == 1) {
    if (k != 0) {
      cout << -1 << endl;
      return 0;
    } else {
      cout << 1 << endl;
      return 0;
    }
  }
  int x = k - (n - 2) / 2;
  arr.push_back(x);
  arr.push_back(2 * x);
  t = 2 * x + 1;
  n -= 2;
  while (n > 1) {
    arr.push_back(t);
    t++;
    arr.push_back(t);
    t++;
    n -= 2;
  }
  if (n == 1) arr.push_back(t);
  for (int i = 0; i < arr.size(); i++) cout << arr[i] << " ";
  cout << endl;
  return 0;
}
