#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, k;
  cin >> n >> k;
  if (n == 1) {
    if (k == 0) {
      cout << 1 << '\n';
      return;
    } else {
      cout << -1 << '\n';
      return;
    }
  }
  if (n / 2 > k) {
    cout << -1 << '\n';
    return;
  }
  k = k - n / 2;
  k++;
  int x = k, i;
  n -= 2;
  cout << x << " " << 2 * x << " ";
  for (i = 3; n > 0; i += 2) {
    if (i == x || i == 2 * x || (i + 1) == x || (i + 1) == 2 * x) continue;
    cout << i << " ";
    n--;
    if (n == 0) break;
    cout << i + 1 << " ";
    n--;
  }
  return;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  solve();
  return 0;
}
