1685: 函数返回指针练习

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

Description

编写一个函数,用于在一个包含N个整数的数组中找到第一个质数,若有则返回函数的地址,并输出该质数;否则返回NULL(空指针) 要求: 编写连个函数 1、检查质数的函数 2、遍历查找质数的函数,必须要求返回地址

Input

两行 第一行为N 第二行为N个整数

Output

质数或者can't find!

Sample Input Copy

7
1 6 9 2 3 4 5

Sample Output Copy

2