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: [786, 624, 597, 682, 641, 23, 590, 222, 271, 305, 61, 29, 37, 42, 788, 904]

A: [641, 23, 271, 61, 29, 37]
****
Q: [785, 523, 728, 936]

A: [523]
****
Q: [217, 655, 557, 482, 71, 887, 911, 167, 53, 484, 938, 864, 109, 733, 279, 895, 122, 661, 593]

A:
[557, 71, 887, 911, 167, 53, 109, 733, 661, 593]
****