#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
const long long inf = 1000000000000;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, k;
  cin >> n >> k;
  bool is = true;
  for (int i = 2; i <= k; i++) {
    if ((n + 1) % i != 0) {
      is = false;
      break;
    }
  }
  string ans = (is == false) ? "No" : "Yes";
  cout << ans << endl;
  return 0;
}
