Media.net coding round
Anonymous User
395

'''
Please help with this question

Problem:
We are familiar with primes.
Here we define omega prime.
A number X is omega prime such that any perfect square of Y (Y>1) doesn't divide X. Such as 2, 6 are omega prime while 12 is not a omega prime as it is divided by 2*2.
Now we are given an array A of integers, we need to find out the total number of subsets such that the product of elements of the subset is omega prime. The answer can be very large, hence output modulo 1000000007.

1<=A.size()<=2* (10^4)
1<=A[i]<=30
'''

Comments (1)