#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m;
  cin >> n >> m;
  if ((n / 2) > m || n == 1 && m != 0)
    cout << "-1";
  else if (m == 0)
    cout << "1";
  else {
    long long int a, b, c, d;
    if (n % 2) {
      a = n - 1;
    } else
      a = n;
    b = m - ((a - 2) / 2);
    c = (n - 2);
    if (b != 1) {
      cout << b << " " << b * 2 << " ";
    } else
      c += 2;
    d = b * 2 + 1;
    while (c--) {
      cout << d << " ";
      d++;
    }
  }
}
