#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  while (scanf("%d%d", &n, &k) != EOF) {
    int t = n / 2;
    if (t > k || (k != 0 && t == 0)) {
      printf("-1\n");
      continue;
    } else if (t == k) {
      for (int i = 1; i <= n; i++) printf("%d ", i);
      printf("\n");
    } else {
      int temp = k - t + 1;
      printf("%d %d ", temp, temp * 2);
      int d = 2;
      for (int i = temp * 2 + 1;; i++) {
        if (d == n) break;
        printf("%d ", i);
        d++;
      }
      printf("\n");
    }
  }
  return 0;
}
