#include <bits/stdc++.h>
using namespace std;
int main() {
  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 {
      int t = k - (n / 2) + 1;
      cout << t << " " << 2 * t << endl;
      int temp = 0;
      for (int i = 1; i < n / 2; i++) {
        cout << " " << 900000000 + temp << " " << 900000000 + temp + 1 << endl;
        temp += 2;
      }
      if (n & 1)
        cout << " "
             << "999999999" << endl;
    }
  }
}
