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