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.

Example Input: [877, 463, 540]
Example Output: [877, 463]

Example Input: [47, 751, 519, 643, 520, 807, 409, 749, 175]
Example Output: [47, 751, 643, 409]

Example Input: [677, 359, 253, 151, 109, 653, 949, 991, 521, 307, 271, 367, 929, 829]
Example Output:
[677, 359, 151, 109, 653, 991, 521, 307, 271, 367, 929, 829]