#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int maxn = 1007;
void solve() {
  int n, m;
  cin >> n >> m;
  vector<int> ans(n);
  for (int i = 0; i < n; i++) {
    if (m > i / 2) {
      m -= i / 2;
      ans[i] = i + 1;
      continue;
    }
    ans[i] = i + (i - 2 * m + 1);
    int cur = 1e8;
    for (int j = i + 1; j < n; j++) {
      ans[j] = cur;
      cur += 1e4;
    }
    for (auto it : ans) {
      cout << it << " ";
    }
    return;
  }
  cout << -1;
}
int main() {
  cin.tie(0);
  cout.tie(0);
  cout << setprecision(20);
  ios_base::sync_with_stdio(false);
  solve();
  return 0;
}
