#include <bits/stdc++.h>
using namespace std;
const int64_t INF = 2e18;
int64_t gcd(int64_t a, int64_t b) { return b == 0 ? a : gcd(b, a % b); }
int64_t lcm(int64_t a, int64_t b) {
  int64_t c = (b / gcd(a, b));
  if (double(a) * c > INF) return INF;
  return a * c;
}
int main() {
  int64_t N, K;
  cin >> N >> K;
  int64_t L = 1;
  for (int k = 1; k <= K; k++) {
    L = lcm(L, k);
    if (L >= INF) break;
  }
  cout << (N % L == (L - 1) ? "Yes" : "No") << endl;
  return 0;
}
