#include <bits/stdc++.h>
using namespace std;
void Rayliciti(long long n, long long k) {
  for (long long i = 1; i <= k; i++) {
    if ((n % i) != (i - 1)) {
      cout << "NO";
      return;
    }
  }
  cout << "YES";
}
int main() {
  long long n, k;
  scanf("%lld %lld", &n, &k);
  Rayliciti(n, k);
}
