#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k;
  cin >> n >> k;
  if (n == 1) {
    if (k == 0)
      cout << 1 << endl;
    else
      cout << -1 << endl;
  } else if (k < n / 2)
    cout << -1 << endl;
  else {
    long long int first = k - ((n / 2) - 1);
    long long int limit = n - 2;
    cout << first << ' ' << first * 2 << ' ';
    for (long long int i = 1; i <= limit; i += 2) {
      if (i == first or i + 1 == first or i == 2 * first or
          i + 1 == 2 * first) {
        limit += 2;
        continue;
      }
      if (i == limit) {
        cout << i << ' ';
        continue;
      }
      cout << i << ' ' << i + 1 << ' ';
    }
  }
}
