1422: 中级班第五课——找素数

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

Description

  请找出输入的N个数中的素数。若无素数则输出0

Input

两行
  第一行,N
  第二行,N个数

Output

一行,若干个素数,空格隔开

Sample Input Copy

3
2 3 6

Sample Output Copy

2 3

Source/Category