#include <bits/stdc++.h>
using namespace std;
long long n, k;
int main() {
  cin >> n >> k;
  if (n / 2 > k || n / 2 < 1 && k > 0 || n == 1 && k != 0) {
    cout << "-1";
    return 0;
  }
  if (n == 1 && k == 0) {
    cout << "1";
    return 0;
  }
  k -= n / 2 - 1;
  cout << k << " " << k * 2 << " ";
  int i = k * 2 + 1, j = 2;
  for (j; j < n; j++) cout << i << " ", i++;
}
