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: [427, 347]
Example Output: [347]

Example Input: [965, 448, 466, 509, 911, 379, 462, 313, 379, 7, 516, 5, 285, 918]
Example Output: [509, 911, 379, 313, 379, 7, 5]

Example Input: [457, 347, 59, 377, 127, 838, 658, 38, 977, 173, 342, 921, 584, 879, 643, 102, 839, 886]
Example Output:
[457, 347, 59, 127, 977, 173, 643, 839]