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