#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long int n, m;
  cin >> n >> m;
  long long int a[n + 1];
  a[n] = 0;
  if (n == 1 && m == 0) {
    cout << "1" << endl;
  } else if (n == 1 && m != 0) {
    cout << "-1" << endl;
  } else if (n / 2 > m) {
    cout << "-1" << endl;
  } else if (n % 2 == 0) {
    long long int i = 0;
    long long int count = n / 2;
    m -= count - 1;
    a[i] = 1 * m;
    a[i + 1] = 2 * 1 * m;
    for (i = 2; i <= 2 * (count); i++) {
      a[i] = (2 * m) + i;
    }
    for (int i = 0; i < n; i++) {
      cout << a[i] << endl;
    }
  } else if (n % 2 != 0) {
    long long int i = 0;
    long long int count = n / 2;
    m -= count - 1;
    a[i] = 1 * m;
    a[i + 1] = 2 * 1 * m;
    for (i = 2; i <= 2 * (count); i++) {
      a[i] = (2 * m) + i;
    }
    a[i] = (2 * m) + i;
    for (int i = 0; i < n; i++) {
      cout << a[i] << endl;
    }
  }
}
