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