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