#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, i, j, a, b, x, max, s;
  cin >> n >> k;
  if (k == 0) {
    if (n > 1) {
      cout << "-1";
      return 0;
    } else {
      cout << "1";
      return 0;
    }
  }
  if (k < n / 2) {
    cout << "-1";
    return 0;
  }
  if (n == 1) {
    cout << "-1";
    return 0;
  }
  s = j = (k) / (n / 2);
  a = n / 2 - (k) % (n / 2);
  ;
  for (i = 1; i <= 2 * a; i++) cout << i * j << " ";
  max = (i - 1) * j;
  j++;
  a = n / 2 - a;
  for (i = 1, x = 1; x <= a;) {
    if ((i * j) % s == 0 && (i * j) <= max) {
      i++;
      continue;
    } else if (((i + 1) * j) % s == 0 && (i * j) <= max) {
      i = i + 2;
      continue;
    }
    cout << i * j << " " << (i + 1) * j << " ";
    x++;
    i = i + 2;
  }
  if (n % 2 == 1) cout << "99999999";
  return 0;
}
