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