1457: 函数解决绝对素数问题4

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:4 Solved:4

Description

输入一个数字n表示测试数据得组数,每组数据由两部分构成:一个数字m,后面跟着m个两位数

Input

组数n,每组的数字个数m跟着的m个数字。

Output

每组数据中的绝对素数的个数,每组占一行。

Sample Input Copy

3
3 12 13 14
4 14 15 16 17
5 18 19 20 21 22

Sample Output Copy

1
1
0