#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, m;
  cin >> n >> m;
  int need = m;
  vector<int> vals;
  for (int i = 1; i <= n; i++) {
    int ways = (i - 1) / 2;
    if (ways > need) break;
    need -= ways;
    vals.push_back(i);
  }
  if (vals.size() >= n && need > 0) {
    cout << -1 << endl;
    return 0;
  }
  if (need > 0) {
    for (int i = 0;; i++) {
      int ways = (vals.size() + 1 + i - 1) / 2 - i;
      if (ways == need) {
        vals.push_back(vals.size() + 1 + i);
        break;
      }
    }
  }
  int gap = *vals.rbegin() + 1;
  int cur = 1e9;
  while (vals.size() < n) {
    vals.push_back(cur);
    cur -= gap;
  }
  sort(vals.begin(), vals.end());
  string sep = "";
  for (int val : vals) {
    cout << sep << val;
    sep = " ";
  }
  cout << endl;
  return 0;
}
