#include <bits/stdc++.h>
using namespace std;
int dividers[60];
int main() {
  long long int n, k;
  cin >> n >> k;
  if (k == 1) {
    cout << "Yes";
    return 0;
  }
  if (k == 2 && n == 1) {
    cout << "Yes";
    return 0;
  }
  if (n <= k) {
    cout << "No";
    return 0;
  }
  if (k > 50) {
    cout << "No";
    return 0;
  }
  long long int c = n + 1;
  for (int i = 2; i <= k; i++) {
    if (c % i != 0) {
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
  return 0;
}
