#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  long long n, k;
  cin >> n >> k;
  if (n == 1 && k == 0) {
    cout << 1;
    return 0;
  }
  if (k < n / 2 || n < 2) {
    cout << -1;
    return 0;
  }
  int pt = 0;
  if (n % 2 == 1) {
    pt++;
    n--;
  }
  for (int i = 0; i < n - 2; i++) cout << i + 1 << " ";
  for (int i = 1;; i++)
    if (i * (k - ((n - 2) / 2)) > 1e5) {
      cout << i * (k - ((n - 2) / 2)) << " " << (i + 1) * (k - ((n - 2) / 2));
      break;
    }
  if (pt == 1) cout << " " << '1000000000000';
  return 0;
}
