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: [887, 147, 474, 684, 280, 661, 991, 545, 363]

A: [887, 661, 991]
****
Q: [937, 691, 304, 313, 655, 499]

A: [937, 691, 313, 499]
****
Q: [509, 763, 526, 996, 877, 479, 839, 601, 463, 43, 164, 687, 642, 409, 431, 128, 876]

A:
[509, 877, 479, 839, 601, 463, 43, 409, 431]
****