#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 5;
const long long mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(NULL), cout.tie(NULL);
  int n, k;
  cin >> n >> k;
  if (k < n / 2 || (n == 1 && k != 0)) {
    cout << -1 << endl;
  } else if (n == 1 && k == 0) {
    cout << 1 << endl;
  } else {
    int x = k - (n - 2) / 2;
    cout << x << " " << 2 * x << " ";
    int cur = x * 4;
    for (int i = 2; i < n; i++) {
      cout << cur++ << " ";
    }
  }
  return 0;
}
