Given a sequence of integers .
Let and be the number of distinct prime factors of .
Please calculate
The first line contains one integer () the length of the sequence.
The second line contains integers () the sequence.
Print the answer to the equation.
10 99 62 10 47 53 9 83 33 15 24
248
10 6 7 5 5 4 9 9 1 8 12
134