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: [109, 879, 727, 721, 239, 642, 547, 168, 989]

Answer: [109, 727, 239, 547]


Question: [295, 661, 332, 211, 251, 431, 720, 692]

Answer: [661, 211, 251, 431]


Question: [211, 579, 530, 41, 709, 359, 40, 2, 439, 603, 197, 15, 487, 788, 188]

Answer:
[211, 41, 709, 359, 2, 439, 197, 487]