#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  if (k < n / 2)
    cout << -1 << endl;
  else {
    int last = k - n / 2 + 1;
    int last2 = last * 2;
    if (n % 2 == 0) {
      int pri = 1;
      for (int i = 0; i < n / 2 - 1; ++i) {
        if (pri == last) {
          pri += 2;
          cout << pri << " " << pri + 2 << " ";
          pri += 4;
        } else if (pri + 2 == last) {
          cout << pri << " " << pri + 4 << " ";
          pri += 6;
        } else {
          cout << pri << " " << pri + 2 << " ";
          pri += 4;
        }
      }
      cout << last << " " << last2 << " " << endl;
    } else {
      int pri = 1;
      for (int i = 0; i < n / 2 - 1; ++i) {
        if (pri == last) {
          pri += 2;
          cout << pri << " " << pri + 2 << " ";
          pri += 4;
        } else if (pri + 2 == last) {
          cout << pri << " " << pri + 4 << " ";
          pri += 6;
        } else {
          cout << pri << " " << pri + 2 << " ";
          pri += 4;
        }
      }
      if (n == 1) {
        if (k == 0)
          cout << 1 << endl;
        else
          cout << -1 << endl;
      } else {
        cout << last << " " << last2 << " ";
        if (pri == last)
          cout << pri + 2 << " " << endl;
        else
          cout << pri << endl;
      }
    }
  }
}
