#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  while (cin >> n >> k) {
    int tmp = n / 2;
    if (n == 1 && k == 0) {
      cout << 1 << endl;
      continue;
    }
    if (tmp > k || (tmp == 0 && k != 0)) {
      cout << "-1" << endl;
      continue;
    }
    int mk = k - tmp + 1;
    cout << 2 * mk << " " << 3 * mk;
    for (int i = 1; i <= n - 2; i++) {
      cout << " " << 3 * mk + i;
    }
    cout << endl;
  }
  return 0;
}
