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