#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m;
  cin >> n >> m;
  int f = 0;
  for (int i = 1; i <= m; i++) {
    if (n % i != i - 1) {
      f = 1;
      break;
    }
  }
  if (f == 1)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
}
