#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1005;
map<int, bool> mp;
int main() {
  long long n, k;
  cin >> n >> k;
  for (long long i = 1; i <= k; i++) {
    int now = n % i;
    if (mp[now]) {
      cout << "No" << endl;
      return 0;
    }
    mp[now] = 1;
  }
  cout << "Yes" << endl;
}
