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: [429, 239, 16, 499, 947, 220, 283]

Answer: [239, 499, 947, 283]


Question: [244, 82, 41, 352, 151, 718, 503, 776, 55, 367, 787, 174, 211, 751, 576]

Answer: [41, 151, 503, 367, 787, 211, 751]


Question: [151, 461, 724, 329, 291, 393, 96, 877, 729, 149, 173, 184, 101, 829, 223, 247, 336]

Answer:
[151, 461, 877, 149, 173, 101, 829, 223]