#include <bits/stdc++.h>
using namespace std;
const long long INFLL = 2 * (long long)1e18 + 100;
const int INFINT = 2 * (int)1e9 + 100;
const double PI = atan(1) * 4;
const double EPS = 1e-12;
const int SEED = 1e3 + 7;
const int MOD = 1e9 + 7;
const int NMAX = 1e6 + 5;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, k;
  cin >> n >> k;
  if (k > NMAX) return cout << "No", 0;
  map<long long, bool> r;
  for (int i = 1; i <= k; i++) {
    if (r[n % i]) return cout << "No", 0;
    r[n % i] = 1;
  }
  cout << "Yes";
  return 0;
}
