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: [812, 761, 7, 384, 274, 343, 809, 74, 151, 651, 147, 951]
Example Output: [761, 7, 809, 151]

Example Input: [652, 797, 31, 67, 22, 818, 234, 174, 146]
Example Output: [797, 31, 67]

Example Input: [515, 487, 703, 149, 346, 103, 7, 482, 371, 88, 29, 602, 997, 811, 256, 5, 792, 877]
Example Output:
[487, 149, 103, 7, 29, 997, 811, 5, 877]