#include <bits/stdc++.h>
using namespace std;
long long n, k;
int main() {
  cin >> n >> k;
  if (k == 1 || (k == 2 && n == 1))
    cout << "Yes" << endl;
  else if (k >= n)
    cout << "No" << endl;
  else {
    long long l = floor(log2(k)) + 1;
    for (long long i = 0; i < l - 1; i++) {
      if ((n & ((long long)1 << i)) == 0) {
        cout << "No" << endl;
        return 0;
      }
    }
    for (long long j = k; j >= 1; j--) {
      if ((n % j) != j - 1) {
        cout << "No" << endl;
        return 0;
      }
    }
    cout << "Yes" << endl;
  }
  return 0;
}
