You are given an array of
positive integers.
You can do the following operation any number of times (possibly, zero) on :
Choose two distinct indices (
), then let
.
Determine whether you can make all the integers in the array prime numbers by applying the operations.
Recall that a prime number is a positive integer greater than that is not a product of two smaller positive integers.
The first line contains an integer
(
) — the length of array
.
The second line contains
positive integers
(
) — the integers in
.
If it is possible to make all the integers in the array
prime numbers, print ‘Yes’ in a single line (without quotes). Otherwise, print ‘No’ (without quotes).