We are given an array of positive integers.
A special number is a number that is not divisible by the square of any number.
Example:
is not a special number, because it is divisible by (which is ).
is not a special number, because it is divisible by (which is ).
are special numbers.
You have to find the number of the non-empty different subsets of the array such that the product of elements in it is a special number. Return answer modulo .
Input format
Output format
Constraints
[2,3], [2,3], [2], [2], [3] are the possible subsets. So the answer is 5.