#include <bits/stdc++.h>
int main() {
  std::ios_base::sync_with_stdio(false);
  long long n, k;
  std::cin >> n >> k;
  if (n <= k && n != 1) {
    std::cout << "No" << std::endl;
  } else if (n == 1 && k <= 2) {
    std::cout << "Yes" << std::endl;
  } else {
    for (long long d = 1; d <= k; d++) {
      if (n % d != d - 1) {
        std::cout << "No" << std::endl;
        return 0;
      }
    }
    std::cout << "Yes" << std::endl;
  }
  return 0;
}
