#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  long long m;
  cin >> n >> m;
  vector<long long> ans;
  long long inf = (1e9) - 4 * (n + 1) * n;
  for (int i = 1; i <= n; i++) {
    long long can = (i - 1) / 2;
    if (can <= m) {
      ans.push_back(i);
      m -= can;
      continue;
    }
    if (m == 0) {
      ans.push_back(inf);
      inf += 4 * (n + 1);
      continue;
    }
    ans.push_back(ans[i - 1 - 1] + ans[i - 1 - 2 * (int)m]);
    m = 0;
  }
  if (m > 0) {
    cout << -1 << endl;
    return 0;
  }
  cout << ans[0];
  for (int i = 1; i < n; i++) {
    cout << " " << ans[i];
  }
  cout << endl;
}
