#include <bits/stdc++.h>
using namespace std;
void __print(int x) { cerr << x; }
void __print(long x) { cerr << x; }
void __print(long long x) { cerr << x; }
void __print(float x) { cerr << x; }
void __print(double x) { cerr << x; }
void __print(long double x) { cerr << x; }
void __print(char x) { cerr << '\'' << x << '\''; }
void __print(const char *x) { cerr << '\"' << x << '\"'; }
void __print(const string &x) { cerr << '\"' << x << '\"'; }
void __print(bool x) { cerr << (x ? "true" : "false"); }
template <typename T, typename V>
void __print(const pair<T, V> &x) {
  cerr << '{';
  __print(x.first);
  cerr << ',';
  __print(x.second);
  cerr << '}';
}
template <typename T>
void __print(const T &x) {
  int f = 0;
  cerr << '{';
  for (auto &i : x) cerr << (f++ ? "," : ""), __print(i);
  cerr << "}";
}
void _print() { cerr << "]\n"; }
template <typename T, typename... V>
void _print(T t, V... v) {
  __print(t);
  if (sizeof...(v)) cerr << ", ";
  _print(v...);
}
const long long inf = 9223372036854775807;
const long long mod = 1000000007;
const double pi = acos(-1);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(0);
  long long n, k;
  cin >> n >> k;
  long long val = n - (n % 2);
  if (n == 1) {
    if (k == 0) {
      cout << 1;
    } else {
      cout << -1;
    }
    return 0;
  }
  if (val / 2 > k) {
    cout << -1;
  } else {
    long long x = (val / 2 - 1);
    cout << k - x << " " << (k - x) * 2 << " ";
    set<long long> s;
    s.insert(k - x);
    s.insert((k - x) * 2);
    long long t = 2;
    for (int i = 0; i < x; i++) {
      if (s.find(t) == s.end() && s.find(t + 1) == s.end()) {
        cout << t << " " << t + 1 << " ";
        s.insert(t);
        s.insert(t + 1);
        t += 2;
      } else {
        t += 2;
        i--;
      }
    }
    t += 2;
    if (n % 2 != 0) {
      while (t == (k - x) || t == (k - x) * 2) {
        t++;
      }
      cout << t;
    }
  }
  return 0;
}
