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