#include <bits/stdc++.h>
using namespace std;
long long int n, k;
void inp() {
  cin >> n >> k;
  return;
}
void solve() {
  set<long long int> second;
  for (long long int i = 1; i <= k; i++)
    if (second.count(n % i))
      return void(cout << "No\n");
    else
      second.insert(n % i);
  cout << "Yes\n";
  return;
}
int main() {
  clock_t beg = clock();
  {
    cin.tie(0);
    ios_base::sync_with_stdio(false);
  };
  inp();
  solve();
  clock_t end = clock();
  fprintf(stderr, "%.3f sec\n", (double)(end - beg) / CLOCKS_PER_SEC);
  return 0;
}
