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