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