#include <bits/stdc++.h>
using namespace std;
stringstream ss;
void undefined(string x = "模板需要补充") {
  cout << "模板补充信息: " << x << endl;
}
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
bool isprime(long long a) {
  int i;
  if (a == 1 || a == 0) return false;
  for (long long i = 2; i <= sqrt(a); i++) {
    if (a % i == 0) return false;
  }
  return true;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int n, k;
  cin >> n >> k;
  if (n == 1 && k == 0) {
    cout << 1 << endl;
    return 0;
  }
  if (n == 1) {
    cout << -1 << endl;
    return 0;
  }
  if ((n / 2) > k) {
    cout << -1 << endl;
  } else {
    long long t = k - (n / 2 - 1);
    cout << t << " " << t * 2 << " ";
    int j = 1;
    for (int i = (1); i <= (n / 2 - 1); ++i) {
      while (j == t || j == t * 2 || j + 1 == t || j + 1 == t * 2) {
        j++;
      }
      cout << j << " " << j + 1 << " ";
      j += 2;
    }
    if (n % 2) {
      while (j == t || j == t * 2) {
        j++;
      }
      cout << j;
    }
    cout << endl;
  }
  return 0;
}
