#include <bits/stdc++.h>
using namespace std;
const long double EPS = 1e-9, PI = acos(-1.);
const long long LINF = 0x3f3f3f3f3f3f3f3f, LMOD = 1011112131415161719ll;
const int INF = 0x3f3f3f3f, MOD = 1e9 + 7;
const int N = 1e5 + 5;
long long x, y;
int main() {
  scanf("%lld%lld", &x, &y);
  for (int i = 1; i <= y; i++)
    if ((x % i) != i - 1) {
      printf("No\n");
      return 0;
    }
  printf("Yes\n");
  return 0;
}
