#include <bits/stdc++.h>
int main() {
  long long a, b, c, d;
  scanf("%lld%lld", &a, &b);
  for (c = 1; c <= b; c++) {
    if (a % c != c - 1) {
      printf("No\n");
      return 0;
    }
  }
  printf("Yes\n");
  return 0;
}
