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: [877, 463, 540]

A: [877, 463]
****
Q: [683, 271, 953, 148, 942, 853, 419, 673, 461, 811, 362, 631, 168, 277, 73]

A: [683, 271, 953, 853, 419, 673, 461, 811, 631, 277, 73]
****
Q: [997, 432, 688, 719, 311, 239, 433, 107, 644, 569, 765, 503, 817, 56, 151, 631, 914, 821, 743]

A:
[997, 719, 311, 239, 433, 107, 569, 503, 151, 631, 821, 743]
****