#C14253. Remove Prime Numbers from a List
Remove Prime Numbers from a List
Remove Prime Numbers from a List
You are given a list of integers. Your task is to remove all prime numbers from the list and output the remaining numbers.
A prime number is a number \( p \) such that \( p > 1 \) and it has no positive divisors other than 1 and itself. Note that negative numbers, 0, and 1 are not considered prime.
For example, given the list [2, 3, 4, 5, 6, 7, 8, 9, 10], the prime numbers 2, 3, 5, and 7 are removed, leaving [4, 6, 8, 9, 10].
inputFormat
The first line contains a non-negative integer \( n \) representing the number of elements in the list. The second line contains \( n \) space-separated integers.
outputFormat
Output a single line with the numbers that are not prime, in their original order and separated by a space. If there are no numbers to output, print an empty line.
## sample9
2 3 4 5 6 7 8 9 10
4 6 8 9 10