In this task you will be given a list of integers. You should remove any integer that is not prime. A prime integer is an integer that is only divisible by '1' and itself. The output should be the list of prime numbers in the input list. If there are no primes in the input list an empty list ("[]") should be returned.
--------
Question: [873, 381, 839, 263, 152, 478, 229, 778, 997, 967, 573, 577, 19, 871, 232]

Answer: [839, 263, 229, 997, 967, 577, 19]


Question: [3, 761, 467, 65, 151, 124, 991]

Answer: [3, 761, 467, 151, 991]


Question: [379, 113, 184, 135, 457, 594, 28, 311, 449, 913, 804, 163, 797, 537, 106, 433, 167]

Answer:
[379, 113, 457, 311, 449, 163, 797, 433, 167]