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