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.

[EX Q]: [904, 73, 539, 689, 227, 383, 26, 139, 787, 223, 887, 43, 821, 877, 510, 347, 307, 253, 54]
[EX A]: [73, 227, 383, 139, 787, 223, 887, 43, 821, 877, 347, 307]

[EX Q]: [591, 772, 276, 23, 995, 217, 719, 31, 776, 155, 857, 642]
[EX A]: [23, 719, 31, 857]

[EX Q]: [883, 311, 89, 197, 656, 354, 17, 601, 952, 118, 17, 398, 168, 479, 11, 853, 113, 248, 240, 379]
[EX A]:
[883, 311, 89, 197, 17, 601, 17, 479, 11, 853, 113, 379]