#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m;
  cin >> n >> m;
  if (m > 100000000) {
    cout << "NO" << endl;
    return 0;
  }
  string s = "YES";
  for (int i = 1; i <= m; i++) {
    if (n % i != i - 1) {
      s = "NO";
      break;
    }
  }
  cout << s << endl;
}
