1382: 分成互质组

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

Description

给定 n 个正整数,将它们分组,使得每组中任意两个数互质。至少要分成多少个组?

Input

第一行是一个正整数 n。(1 ≤ n ≤ 100) 

第二行是 n 个不大于 10000 的正整数。 

Output

一个正整数,即最少需要的组数。

Sample Input Copy

6
14 20 33 117 143 175

Sample Output Copy

3