#include <bits/stdc++.h>
using namespace std;
int n, k;
int main() {
  cin >> n >> k;
  if (n == 1) {
    if (k == 0)
      return 0 * printf("1\n");
    else
      return 0 * printf("-1\n");
  }
  if (n / 2 > k) return 0 * printf("-1\n");
  int p = k - n / 2 + 1;
  printf("%d %d ", p, 2 * p);
  p *= 2;
  for (int i = 3; i <= n; i++) {
    p++;
    printf("%d ", p);
  }
}
