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