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