#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, k, n1;
  cin >> n >> k;
  n1 = n;
  if (n1 % 2 == 1) n1--;
  n1 /= 2;
  if (n == 1) {
    if (k == 0)
      cout << 1 << endl;
    else
      cout << -1 << endl;
  } else if (n1 > k)
    cout << -1 << endl;
  else
    for (i = 0; i < n - 1; i += 2) {
      if (n1 == 1) {
        if (k > i) {
          cout << k << ' ' << 2 * k << ' ';
          if (n % 2 == 1) cout << 2 * k + 1 << endl;
        } else {
          i = (i + 1) / k + 1;
          cout << k * (i + 1) << ' ' << k * (i + 2) << ' ';
          if (n % 2 == 1) cout << k * (i + 2) + 1 << endl;
          return 0;
        }
      } else
        cout << i + 1 << ' ' << i + 2 << ' ';
      n1--;
      k--;
    }
  return 0;
}
