#include <bits/stdc++.h>
using namespace std;
long long N = 1E9;
int main() {
  ios_base::sync_with_stdio(false);
  long long n, k;
  cin >> n >> k;
  long long p = N;
  if (k < n / 2 || (n < 4 && 2 * k > N) || (n == 1 && k != 0) ||
      (n < 6 && k == N))
    cout << -1;
  else if (n == 1) {
    cout << 1;
  } else if (n < 4) {
    cout << k << ' ' << k * 2 << ' ';
    if (n % 2 == 1) {
      while (p == k || p == k + 1 || p == 2 * k) p--;
      cout << p;
    }
  } else if (2 * (k - ((n - 2) / 2)) <= N) {
    cout << k - ((n - 2) / 2) << ' ' << 2 * (k - ((n - 2) / 2)) << ' ';
    long long poi = 4;
    while (poi <= n) {
      while (p == k - ((n - 2) / 2) || p == k - ((n - 2) / 2) + 1 ||
             p == 2 * (k - ((n - 2) / 2)))
        p -= 2;
      cout << p << ' ' << p - 1 << ' ';
      p -= 2;
      poi += 2;
    }
    if (n % 2 == 1) {
      while (p == k - ((n - 2) / 2) || p == k - ((n - 2) / 2) + 1 ||
             p == 2 * (k - ((n - 2) / 2)))
        p--;
      cout << p;
    }
  } else {
    long long x = 0, y = 0;
    if ((k - ((n - 4) / 2)) % 2 == 1) {
      x = (k - ((n - 4) / 2)) / 2;
      y = x + 1;
    } else {
      x = (k - ((n - 4) / 2)) / 2 - 1;
      y = x + 2;
    }
    cout << x << ' ' << 2 * x << ' ';
    cout << y << ' ' << 2 * y << ' ';
    long long poi = 6;
    while (poi <= n) {
      while (p == x || p == x + 1 || p == y || p == y + 1 || p == 2 * x ||
             p == 2 * y)
        p -= 2;
      cout << p << ' ' << p - 1 << ' ';
      p -= 2;
      poi += 2;
    }
    if (n % 2 == 1) {
      while (p == x || p == x + 1 || p == y || p == y + 1 || p == 2 * x ||
             p == 2 * y)
        p--;
      cout << p;
    }
  }
}
