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.

[467, 223, 227, 457, 569, 143, 473]
[467, 223, 227, 457, 569]

[47, 239, 313, 797, 687, 787, 311]
[47, 239, 313, 797, 787, 311]

[580, 116, 931, 167, 389, 337, 527, 499, 397, 67, 295, 25, 457, 776, 509, 207, 222]

[167, 389, 337, 499, 397, 67, 457, 509]