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: [798, 618]

Answer: []


Question: [598, 667, 772, 975]

Answer: []


Question: [973, 116, 673, 297, 791, 75, 647, 71, 939, 829, 588]

Answer:
[673, 647, 71, 829]