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: [683, 271, 953, 148, 942, 853, 419, 673, 461, 811, 362, 631, 168, 277, 73]

Answer: [683, 271, 953, 853, 419, 673, 461, 811, 631, 277, 73]


Question: [839, 751, 282, 748, 822, 757, 533, 212, 421, 508, 337, 975, 814, 787, 317, 791, 334]

Answer:
[839, 751, 757, 421, 337, 787, 317]