#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, t, n, m, c, d, a[100005];
  cin >> n >> m;
  if (n == 1 && m == 0) {
    cout << 10000000;
    return 0;
  }
  if (m < n / 2 || n < 2) {
    cout << -1;
    return 0;
  }
  c = 1000000000LL;
  for (int i = n - 1; i > 1; i--) {
    a[i] = c--;
  }
  int tem;
  if (n % 2)
    m = m - (n - 3) / 2;
  else
    m = m - (n - 2) / 2;
  a[1] = m;
  a[0] = m * 2;
  for (__typeof(0) i = 0; i <= n - 1; i++) cout << a[i] << " ";
  return 0;
}
