#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC target("sse4")
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, k;
  cin >> n >> k;
  if (floor(n / 2) > k || (n == 1 && k != 0)) {
    cout << -1 << "\n";
    return 0;
  } else if (n == 1 && k == 0)
    cout << 1 << "\n";
  else {
    int rem = k - floor(n / 2);
    cout << rem + 1 << " " << 2 * (rem + 1) << " ";
    for (int i = 1; i < n - 1; i++) {
      if (i != rem + 1 && i != 2 * (rem + 1)) cout << i << " ";
      if (i == rem + 1 || i == 2 * (rem + 1)) n += 1;
    }
  }
  return 0;
}
