#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, d, e, f;
  cin >> a >> b;
  c = a / 2;
  if (b < c || (a == 1 && b != 0))
    cout << -1;
  else if (a == 1 && b == 0)
    cout << 1;
  else if (b % c == 0) {
    e = b / c;
    if (b / c != 1) {
      for (int i = 0; i < a; i++) {
        cout << e << " ";
        e += (b / c);
      }
    } else {
      for (int i = 0; i < a; i++) {
        cout << e << " ";
        e += 1;
      }
    }
  } else {
    f = b / c;
    e = b / c + b % c;
    cout << e << " " << 2 * e << " " << f << " ";
    if (b / c != 1) {
      for (int i = 3; i < a; i++) {
        if (b / c + f != 2 * e && b / c + f != e)
          cout << (b / c) + f << " ";
        else {
          f += b / c;
          cout << b / c + f << " ";
        }
        f += (b / c);
      }
    } else {
      for (int i = 3; i < a; i++) {
        cout << (e * e + 1) + f << " ";
        f += 1;
      }
    }
  }
  return 0;
}
