#P17327. [ICPC 2018 Nanjing R] Prime Game
[ICPC 2018 Nanjing R] Prime Game
题目描述
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