#include <bits/stdc++.h>
using namespace std;
struct edge {
  int from, to;
  long long cost;
};
long long gcd(long long a, long long b) {
  if (b == 0)
    return a;
  else
    return gcd(b, a % b);
}
int main() {
  std::ios::sync_with_stdio(0);
  cin.tie(0);
  long long n, k;
  cin >> n >> k;
  if (k == 1) {
    cout << "Yes" << endl;
    return 0;
  }
  long long m = 1;
  for (long long i = 2; i <= min(k, 43LL); i++) {
    m = m * i / gcd(m, i);
  }
  if ((n + 1) % m == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
