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