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: [904, 73, 539, 689, 227, 383, 26, 139, 787, 223, 887, 43, 821, 877, 510, 347, 307, 253, 54]

A: [73, 227, 383, 139, 787, 223, 887, 43, 821, 877, 347, 307]
****
Q: [647, 193, 556, 263, 863, 235, 410, 971, 523, 624, 191]

A: [647, 193, 263, 863, 971, 523, 191]
****
Q: [979, 461, 41, 479, 653, 65, 709, 155, 103, 958, 97, 226, 502, 3, 283]

A:
[461, 41, 479, 653, 709, 103, 97, 3, 283]
****