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: [718, 882, 311, 97, 31, 646, 146, 971]

A: [311, 97, 31, 971]
****
Q: [463, 190, 727, 283, 784]

A: [463, 727, 283]
****
Q: [183, 331, 253, 251, 409, 117, 286, 7]

A:
[331, 251, 409, 7]
****