#include <bits/stdc++.h>
using namespace std;
int dx[]{1, -1, 0, 0, 1, -1, 1, -1};
int dy[]{0, 0, 1, -1, 1, -1, -1, 1};
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, m;
  while (cin >> n >> m) {
    if (m < n / 2 || n == 1 && m > 0)
      cout << "-1" << endl;
    else if (n == 1 && m == 0)
      cout << 1 << endl;
    else {
      m -= (n / 2 - 1);
      cout << m << " " << m * 2 << " ";
      map<int, bool> mp;
      mp[m] = mp[m * 2] = 1;
      n -= 2;
      int s = 1;
      for (int i = 0; i < n; i++) {
        while (mp[s]) s++;
        cout << s << " ";
        s++;
      }
      cout << endl;
    }
  }
  return 0;
}
