#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  if (n > k * 2 + 1) {
    cout << -1 << endl;
    return 0;
  }
  if (n == 1) {
    if (k == 0)
      cout << 1 << endl;
    else
      cout << -1 << endl;
    return 0;
  }
  int remain = k - n / 2 + 1;
  cout << remain << " " << remain * 2 << " ";
  const int num = (int)1e8 * 9;
  for (int i = 1; i < n - 1; i++) cout << num + i << " ";
  return 0;
}
