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: [997, 75, 675, 843, 127, 15, 322]

Answer: [997, 127]


Question: [953, 179, 89, 658, 163, 633, 991, 814, 577, 580, 977, 757, 707, 307, 167, 411]

Answer: [953, 179, 89, 163, 991, 577, 977, 757, 307, 167]


Question: [240, 683, 35, 965, 866, 783, 633, 718, 520, 467, 851, 259, 850, 5, 345, 401, 965, 947]

Answer:
[683, 467, 5, 401, 947]