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