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