Type: Default 1000ms 256MiB

Prime

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

给定 nn 个数 aia_i,请你判断 i=1nai\prod_{i = 1}^n a_i 是否为质数

提示:i=1nai=a1×a2××an\prod_{i = 1}^n a_i = a_1 \times a_2 \times \dots \times a_n

Format

Input

  • 11 行:11 个整数 nn
  • 22 行:nn 个整数 aia_i

Output

i=1nai\prod_{i = 1}^n a_i 为质数,输出 Prime!,否则输出 Not prime!

Samples

2
1 2
Prime!

1×2=21 \times 2 = 222 为质数。

3
1 2 3
Not prime!

1×2×3=61 \times 2 \times 3 = 666 不为质数。

Limitation

本题采用捆绑测试。

  • 对于 10%10\% 的数据,ai109\prod a_i \le 10^9
  • 对于另外 10%10\% 的数据,n=1n = 1
  • 对于 100%100\% 的数据,1n1061 \le n \le 10^61ai1091 \le a_i \le 10^9

[北辰杯 North-Star-Cup] 八月入门赛

Not Attended
Status
Done
Rule
Ledo
Problem
6
Start at
2023-8-18 18:00
End at
2023-8-19 0:00
Duration
6 hour(s)
Host
Partic.
105