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