#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k, flag = 0;
  cin >> n >> k;
  map<int, int> mp;
  if (n % 2 == 0) {
    if (k >= 2)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  } else {
    for (long long int i = 1; i <= k; i++) {
      long long int x = n % i;
      mp[x]++;
      if (mp.size() < i) {
        flag = 1;
        break;
      }
    }
    if (flag == 1)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
