#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, k;
  cin >> n >> k;
  if (n == 1 && k == 0) {
    cout << 1 << '\n';
    return 0;
  }
  if (n / 2 > k || n == 1) {
    cout << -1 << '\n';
    return 0;
  }
  int i = 0;
  for (; i < n / 2 - 1; i++) {
    cout << 2 * i + 1 << " " << 2 * i + 2 << " ";
    k--;
  }
  int j = ((2 * i + 1) / k + 1) * k;
  cout << j << " " << j + k << " ";
  if (n % 2) cout << j + k + 1;
  cout << '\n';
  return 0;
}
