#include <bits/stdc++.h>
using namespace std;
bool vis[999999];
int main() {
  long long n, m;
  while (cin >> n >> m) {
    bool ok = true;
    if (n == 1 && m == 2) {
      cout << "Yes" << endl;
      continue;
    }
    if (n == 1 && m == 1) {
      cout << "Yes" << endl;
      continue;
    }
    if (n <= m || m >= 999999) {
      cout << "No" << endl;
      continue;
    }
    memset(vis, false, sizeof(vis));
    for (long long i = 1; i <= m; i++) {
      if (!vis[n % i])
        vis[n % i] = true;
      else {
        ok = false;
        break;
      }
    }
    cout << (ok ? "Yes" : "No") << endl;
  }
}
