#include <bits/stdc++.h>
using namespace std;
int n, m;
int MAIN() {
  scanf("%d%d", &n, &m);
  if (n == 1) {
    if (m == 0)
      printf("1\n");
    else
      printf("-1\n");
    return 0;
  }
  if (m < n / 2) {
    printf("-1\n");
    return 0;
  }
  printf("%d %d", m - n / 2 + 1, (m - n / 2 + 1) * 2);
  int sar = (m - n / 2 + 1) * 2 + 1;
  n -= 2;
  while (n--) {
    printf(" %d", sar++);
  }
  putchar(10);
  return 0;
}
int main() {
  MAIN();
  return 0;
}
