#include <bits/stdc++.h>
using namespace std;
int a[1000005];
bool mark[60000005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long i, j;
  long long k, l, m, n, t, r, cnt;
  int flag = 0;
  long long ans = 0, an = 0;
  t = 1;
  while (t--) {
    cin >> n >> k;
    for (i = 1; i <= min(k, 60000000LL); i++) {
      if (!mark[n % i])
        mark[n % i] = true;
      else {
        flag = 1;
        break;
      }
    }
    if (flag == 0) {
      if (k >= n && n != 1)
        cout << "No" << endl;
      else
        cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}
