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.

Q: [846, 340, 113, 645, 538]

A: [113]
****
Q: [144, 523, 606, 391]

A: [523]
****
Q: [70, 982, 132, 947, 127, 621, 311, 442, 186]

A:
[947, 127, 311]
****