#include <bits/stdc++.h>
using namespace std;
long long n, m, i, j, t;
int main() {
  scanf("%lld%lld", &n, &m);
  if (m == 2 && n == 1)
    printf("Yes\n");
  else if (m == 1)
    printf("Yes\n");
  else if (n <= m)
    printf("No\n");
  else {
    for (i = 2; i <= m; i++) {
      if (n % i == i - 1)
        continue;
      else
        break;
    }
    if (i == m + 1)
      printf("Yes\n");
    else
      printf("No\n");
  }
}
