WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.

Primes in the array

Threads: For an array of n integers. Find and print out the array primes.
Input: The first line is an integer n. The second line 2 n is an integer array, of numbers separated by spaces.
Output: A multi-line numbers are separated by spaces in the array primes. These numbers are in order as the order in the original array. If no prime range, in ra “NOT FOUND”
For example:

input:
3
4 3 2
output:
3 2

You are not logged in? Log in to Submit Now!

5 Comments

Add a Comment