#include <bits/stdc++.h>
using namespace std;
const int maxn = 1005;
long long n, k;
int main() {
  scanf("%lld%lld", &n, &k);
  if (n == 1 && k <= 2) {
    printf("Yes\n");
  } else if (k > 1000) {
    printf("No\n");
  } else {
    bool f = 1;
    set<int> s;
    for (int i = 1; i <= k; i++) {
      int lef = n % i;
      if (s.find(lef) == s.end()) {
        s.insert(lef);
      } else {
        f = 0;
        break;
      }
    }
    if (f)
      printf("Yes\n");
    else
      printf("No\n");
  }
  return 0;
}
