#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, k;
  cin >> n >> k;
  if (k < n / 2 || (n == 1 && k != 0)) {
    cout << -1;
    return 0;
  }
  if (n >= 2) {
    k -= (n / 2) - 1;
    cout << k << " " << 2 * k << " ";
    for (int i = 1, j = 0; j < n / 2 - 1; i += 2) {
      if (i == k || i + 1 == k || i == 2 * k || i + 1 == 2 * k) continue;
      ++j;
      cout << i << " " << i + 1 << " ";
    }
    if (n % 2 != 0) cout << 1000 * 1000 * 1000 - 1;
  } else {
    cout << 1;
  }
}
