You have an N x M matrix, where 1 to N are rows and 1 to M are columns.
Element at the intersection of ith row and jth column is equal to F(i+j), where F(x) is equal to the number of prime divisors of x.
Determine the sum of all the elements of the matrix.
Input
Output
For each test case, print the sum of all the elements of the matrix in a new line.
Constraints
1≤T≤101≤N,M≤106
The matrix and the corresponding values are:
[F(2)F(3)F(4)F(3)F(4)F(5)F(4)F(5)F(6)] = [111111112]
Hence, the sum of all the elements is 10.