#include <bits/stdc++.h>
using namespace std;
const int SIZE = 1e5 + 10;
const int INF = 0x3f3f3f3f;
const double eps = 1e-5;
const double PI = atan(1.0) * 4.0;
const long long mod = 1e9 + 7;
long long n, k;
int main() {
  scanf("%lld%lld", &n, &k);
  for (long long i = 1; i <= k; i++)
    if (n % (i) != (i - 1)) {
      puts("No");
      return 0;
    }
  puts("Yes");
  return 0;
}
