#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int i, n, k, s;
  long long a[100001];
  cin >> n >> k;
  if (n / 2 > k) {
    cout << "-1" << endl;
  } else if (n <= 1) {
    if (k == 0)
      cout << "1" << endl;
    else
      cout << "-1" << endl;
  } else {
    a[0] = k - (n / 2 - 1);
    a[1] = 2 * a[0];
    s = 1;
    for (i = 2; i < n; i += 2) {
      while (s == a[0] || s == a[1] || s + 1 == a[0] || s + 1 == a[1]) {
        s++;
      }
      a[i] = s;
      a[i + 1] = s + 1;
      s += 2;
    }
    if (n % 2 != 0) {
      while (s == a[0] || s == a[1]) {
        s++;
      }
      a[n - 1] = s;
    }
    for (i = 0; i < n; i++) {
      cout << a[i] << " ";
    }
  }
}
