#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:100000000")
int p[10000500];
int main() {
  int n, a;
  int i;
  long long j;
  scanf("%d%d", &a, &n);
  for (i = 1; i < a + n; ++i) p[i] = 1;
  for (i = 2; i < a + n; ++i) {
    for (j = (long long)i * i; j < a + n; j += (long long)i * i) p[j] = i * i;
  }
  long long ans = 0;
  for (i = a; i < a + n; ++i) ans += i / p[i];
  printf("%I64d\n", ans);
  return 0;
}
