def make_divisors(n): divisors = [] i = 1 while i * i <= n: if n % i == 0: divisors.append(i) j = n // i if i != j: divisors.append(j) i += 1 return divisors N = int(input()) K = int(input()) def f(x): t = min(N, x - 1) s = max(1, x - N) return max(0, t-s+1) ans = 0 for i in make_divisors(K): j = K // i ans += f(i) * f(j) print(ans)