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.

[652, 797, 31, 67, 22, 818, 234, 174, 146]
[797, 31, 67]

[5, 127, 864]
[5, 127]

[351, 811, 798, 223, 112, 251, 929, 275, 775, 65, 669, 739, 373, 499, 877]

[811, 223, 251, 929, 739, 373, 499, 877]