

X = 2 ^ NUM[1] * 3 ^ NUM[2] * 5 ^ NUM[3] * 7 ^ NUM[4] * 11 ^ NUM[5] * … up to Nth term
1. Sum of all the elements in the array 'NUM' will always be less than or equal to 400.
2. As the total number of such sequences can be very large, print the answer modulo 1000000007.
The first line of input contains a single integer T, representing the number of test cases
Then the T test cases follow.
The first line of each test case contains a number N denoting the size of the array 'NUM'.
The second line contains N space-separated integers, the elements of 'NUM'.
For each test case print in a new line, an integer representing the total number of possible sequences of positive integers (greater than 1) whose product is X.
You don’t have to print anything, it has already been taken care of. Just implement the given function.
1<= T <=10
2 <= N <= 500
1 <= NUM[i] < 100
Time Limit : 1 sec
The idea is to make use of a combinatorics approach to find the contribution made by each element of the array in a total number of sequences.