fork download
  1. # your code goes here
  2. # your code goes here
  3. t=int(input(""))
  4. for m in range(1,t+1):
  5. count=0
  6. num=1
  7. subt=int(input(""))
  8. value=map(int,input("").split())
  9. for i in value:
  10. num=num*i
  11. for i in range (1,num+1):
  12. if(num%i==0 ):
  13. count=count+1
  14. print(count)
Success #stdin #stdout 0.1s 10088KB
stdin
3
3
3 5 7
3
2 4 6
2
5 5
stdout
8
10
3