#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k;
  scanf("%lld %lld", &n, &k);
  if (k >= 50) {
    cout << "No" << endl;
    return 0;
  }
  map<long long, bool> aa;
  for (int i = 1; i <= k; i++) aa[n % i] = true;
  if (aa.size() == k)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
