#include <bits/stdc++.h>
long long x[10000000 + 1];
int main() {
  long long a, n;
  long long i, t, j, k, sum;
  for (i = 1; (t = i * i) <= 10000000; i++) {
    for (j = 1, k = t; k <= 10000000; j++, k = k + t) x[k] = j;
  }
  scanf("%I64d%I64d", &a, &n);
  for (sum = 0, i = 0; i < n; i++) sum = sum + x[a + i];
  printf("%I64d\n", sum);
  return 0;
}
