#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n, k;
  cin >> n >> k;
  if ((n == 1 && k > 0) || (k == 0 && n > 1)) {
    cout << -1;
    return 0;
  }
  if (k == 0) {
    cout << 1;
    return 0;
  }
  if (k < n / 2) {
    cout << -1;
  } else {
    int x = k - (n - 2) / 2;
    cout << x << " " << x * 2 << " ";
    for (int i = 1; i <= n - 2; ++i) {
      cout << x * 2 + i << " ";
    }
  }
  return 0;
}
