#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n, k;
  cin >> n >> k;
  if (n == 1 && k == 0)
    cout << 1 << endl;
  else if (n == 1 && k > 0)
    cout << -1 << endl;
  else if ((n) / 2 > k)
    cout << -1 << endl;
  else {
    long long int x = k - (n / 2 - 1);
    cout << x << " " << 2 * x << " ";
    n = n - 2;
    long long int j = 1;
    while (n > 0) {
      cout << 2 * x + j << " ";
      j++;
      n--;
      if (n > 0) {
        cout << 2 * x + j << " ";
        j++;
        n--;
      }
    }
  }
}
