#include <bits/stdc++.h>
using namespace std;
map<int, int> ara;
int main() {
  int n, k;
  cin >> n >> k;
  int t = n / 2;
  if (n == 1 && k != 0) {
    cout << -1;
    return 0;
  }
  if (n == 1 && k == 0) {
    cout << 1;
    return 0;
  }
  if (k < t) {
    cout << -1;
    return 0;
  } else {
    int t2 = k - t;
    t2++;
    cout << t2 << " " << t2 * 2;
    cout << " ";
    ara[t2] = 1;
    ara[t2 * 2] = 1;
    int cnt = 1;
    for (int i = 1; i <= n - 2; i++) {
      if (ara[cnt] == 1) cnt++;
      if (ara[cnt] == 1) cnt++;
      cout << cnt << " ";
      cnt++;
    }
  }
  return 0;
}
