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