Given a, b, c up to 2000, compute the sum over all i<=a, j<=b, k<=c of the divisor count of i*j*k, modulo 2^30.
Let d(n)d(n)d(n) be the number of divisors of a positive integer nnn.
Given three integers aaa, bbb, and ccc, write a program that computes the value of the following sum.
∑i=1a∑j=1b∑k=1cd(i×j×k)\sum_{i=1}^{a}\sum_{j=1}^{b}\sum_{k=1}^{c} d(i \times j \times k)∑i=1a∑j=1b∑k=1cd(i×j×k)
The first line contains aaa, bbb, and ccc, separated by spaces. (1≤a,b,c≤20001 \le a, b, c \le 20001≤a,b,c≤2000)
Print the value of the sum modulo 2302^{30}230 on the first line. 2302^{30}230 is 1073741824.