#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, k;
  cin >> n >> k;
  if (n <= 2) {
    if (k == 0) {
      if (n == 2)
        cout << 1 << ' ' << 2 << '\n';
      else
        cout << 1 << '\n';
    } else
      cout << -1 << '\n';
  } else {
    vector<long long> v;
    v.push_back(1);
    v.push_back(2);
    for (long long i = 3;; i++) {
      if (v.size() == n) break;
      if (k == 0) {
        int j = v.size();
        long long tmp = 10000000;
        for (; j < n; j++) {
          v.push_back(tmp);
          tmp += i;
        }
        break;
      }
      long long t = (i - 1) / (long long)2;
      if (k >= t) {
        k -= t;
        v.push_back(i);
      } else {
        long long cnt = t;
        for (long long j = i + 1;; j++) {
          if (cnt == k) {
            k = 0;
            v.push_back(j);
            i = j + 1;
            break;
          }
          if (!(j & (long long)1)) {
            cnt -= 1;
          }
        }
      }
    }
    if (k != 0) {
      cout << -1 << '\n';
      return 0;
    }
    for (int next : v) cout << next << ' ';
    cout << '\n';
  }
}
