#include <bits/stdc++.h>
using namespace std;
const long long MAX = 200005;
const int INF = 0x3f3f3f3f;
long long n, k;
int a[500050];
int main() {
  cin >> n >> k;
  long long g = 0, temp;
  for (int i = 1; i <= k; i++) {
    temp = n % i;
    if (a[temp]) {
      g = 1;
      break;
    } else
      a[temp] = 1;
  }
  if (g)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
  return 0;
}
