#include <bits/stdc++.h>
int arr[10000001], i = 1, j, n, m;
int main() {
  long long sum = 0;
  scanf("%d%d", &n, &m);
  for (; i * i < 10000001; i++)
    for (j = i * i; j <= 10000001; j += i * i) arr[j] = i * i;
  for (i = n; i < n + m; i++) sum += i / arr[i];
  printf("%I64d", sum);
  return 0;
}
