#include <bits/stdc++.h>
using namespace std;
long long n, k;
bool flag = 1;
int main() {
  scanf("%lld%lld", &n, &k);
  for (long long i = 1; i <= k; i++)
    if (n % i != i - 1) {
      flag = 0;
      break;
    }
  if (flag)
    printf("Yes");
  else
    printf("No");
  return 0;
}
