#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using pi = pair<int, int>;
int n, k;
void solve() {
  cin >> n >> k;
  if (k < n / 2 || (n == 1 && k)) {
    cout << "-1\n";
    return;
  }
  if (n == 1) {
    cout << "1\n";
    return;
  }
  int cur = 1e9;
  for (int i = 0; i + 2 < n / 2 * 2; i += 2, cur -= 2) {
    cout << cur << ' ' << cur - 1 << ' ';
    --k;
  }
  cout << k << ' ' << 2 * k << ' ';
  if (n & 1) cout << (k == 1 ? 3 : k + 1);
  cout << '\n';
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  t = 1;
  while (t--) solve();
}
