#include <bits/stdc++.h>
using namespace std;
int N, M, ans[5004];
int main() {
  cin >> N >> M;
  int sum = 0;
  for (int i = 0; i < N; i++) {
    sum += i / 2;
    if (sum >= M) {
      for (int k = 0; k <= i; k++) {
        ans[k] = k + 1;
      }
      while (sum > M) {
        sum--;
        ans[i] += 2;
      }
      for (int k = i + 1; k < N; k++) {
        ans[k] = 100000 * k + 1;
      }
      for (int k = 0; k < N; k++) cout << ans[k] << ' ';
      cout << '\n';
      return 0;
    }
  }
  cout << -1 << '\n';
}
