#include <bits/stdc++.h>
using namespace std;
void file() {}
signed main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  ;
  vector<long long> ans;
  long long n, m, flag = 0, pos = 0;
  cin >> n >> m;
  while (++pos) {
    long long num = (pos - 1) / 2;
    if (pos <= n && num <= m)
      ans.push_back(pos), m -= num;
    else
      break;
  }
  pos--;
  if (m) {
    long long num = (pos - m) * 2 + 1;
    ans.push_back(num);
    pos++;
  }
  if (pos > n) {
    cout << -1 << "\n";
    return 0;
  }
  long long num = ans[pos - 1];
  num += (num % 2 ? 3 : 2);
  long long temp = 1e9 - 1;
  for (long long i = pos; i < n; i++) {
    temp -= num;
    ans.push_back(temp);
  }
  sort(ans.begin(), ans.end());
  for (auto it : ans) cout << it << " ";
  cout << "\n";
  return 0;
}
