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