#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, k, i;
  cin >> n >> k;
  if (n == 1) {
    if (k == 0)
      cout << 1;
    else
      cout << -1;
    return 0;
  }
  if (n / 2 > k) {
    cout << -1;
    return 0;
  }
  long long x = k - (n / 2 - 1);
  cout << 2 * x << " " << x << " ";
  x = 2 * x;
  for (i = 2; i < n; i++) cout << ++x << " ";
}
