import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long k = sc.nextLong(); long ans = 0; for(long i = 1; (i * i) <= k; i++) { if((k % i) == 0) { long j = k / i; long t1 = Math.min(n, i - 1) - Math.min(1, i - n) + 1; long t2 = Math.min(n, j - 1) - Math.min(1, j - n) + 1; long t = 0; if((t1 >= 0) && (t2 >= 0)) { t = t1 * t2; if(i == j) { ans += t; } else { ans += (2 * t); } } } } System.out.println(ans); } }