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