#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, i, j, l, m;
  cin >> n >> k;
  map<long long, bool> ok;
  for (i = 1; i <= k; i++) {
    j = n % i;
    if (ok[j]) {
      cout << "NO";
      return 0;
    } else
      ok[j] = true;
  }
  cout << "YES";
  return 0;
}
