#include <bits/stdc++.h>
using namespace std;
long long n, k;
set<long long> s;
bool f;
int main() {
  while (scanf("%I64d %I64d", &n, &k) != EOF) {
    s.clear();
    f = true;
    for (long long i = 1; i <= k; ++i) {
      if (s.find(n % i) != s.end()) {
        f = false;
        break;
      } else {
        s.insert(n % i);
      }
    }
    if (f)
      printf("Yes\n");
    else
      printf("No\n");
  }
  return 0;
}
