#include <bits/stdc++.h>
using namespace std;
int n, k;
int main() {
  cin >> n >> k;
  if (k < n / 2) {
    cout << -1;
    return 0;
  }
  if (n == 1) {
    if (k == 0)
      cout << 5;
    else
      cout << -1;
    return 0;
  }
  k -= n / 2;
  cout << (k + 1) << " " << 2 * (k + 1) << ' ';
  int c = 2 * (k + 1) + 1;
  for (int i = 0; i < (int)n / 2 - 1; i++) {
    cout << c << ' ' << c + 1 << ' ';
    c += 2;
  }
  if (n % 2) cout << 1000000000;
  return 0;
}
