#P17327. [ICPC 2018 Nanjing R] Prime Game
[ICPC 2018 Nanjing R] Prime Game
Problem Description
Given a sequence of integers .
Let and be the number of distinct prime factors of .
Please calculate
Input Format
The first line contains one integer () the length of the sequence.
The second line contains integers () the sequence.
Output Format
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