#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cout.precision(16);
  ;
  int n, k;
  cin >> n >> k;
  if (k < n / 2 || (n < 2 && k > 0)) {
    cout << -1;
    return 0;
  }
  if (k == 0 && n < 2) {
    cout << 1;
    return 0;
  }
  long long x = k - n / 2 + 1;
  long long y = n - 2 + x;
  cout << x << " " << 2 * x << " ";
  for (int i = x + 1; i <= y; i++) {
    if (i == 2 * x) {
      y++;
      continue;
    }
    cout << i << " ";
  }
  return 0;
}
