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