#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  int n, m;
  long long h = 1000000000;
  cin >> n >> m;
  if (n == 1 && m == 0)
    cout << 1;
  else if (n == 1 && m > 0)
    cout << -1;
  else if (n == 2 && m == 0)
    cout << 1 << " " << 2;
  else if (n == 2 && m > 0)
    cout << -1;
  else {
    long long p;
    int k = n / 2 - 1;
    p = (1 + k) * k;
    if (n % 2 == 1) p += n / 2;
    vector<int> uns;
    uns.push_back(1);
    uns.push_back(2);
    long long second = 0, j = 1, m1 = 0;
    if (p >= m) {
      while (second < m) {
        if (second + j <= m)
          second += j;
        else
          break;
        m1++;
        if (m1 % 2 == 0) j++;
        if (second <= m) uns.push_back(uns[uns.size() - 1] + 1);
      }
      long long x = m - second;
      if (x != 0)
        uns.push_back(uns[uns.size() - 1] + uns[uns.size() - 1 - 2 * x + 1]);
      long long l = uns[uns.size() - 1];
      if (uns.size() < n)
        while (uns.size() < n) uns.push_back(l + uns[uns.size() - 1] + 1);
      for (auto i : uns) cout << i << " ";
    } else
      cout << -1;
  }
}
