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