#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:100000000")
int mas[100100];
int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  if (n == 1 && k == 0) {
    printf("1");
    return 0;
  } else if (n == 1) {
    printf("-1");
    return 0;
  }
  int cnt = n / 2;
  if (k < cnt) {
    printf("-1\n");
    return 0;
  }
  printf("%d %d", k - cnt + 1, (k - cnt + 1) * 2);
  for (int i = 2; i < n; i++) printf(" %d", 900000000 + i);
  return 0;
}
