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: [317, 105, 677, 839]
Example Output: [317, 677, 839]

Example Input: [876, 173, 936, 929, 806, 360, 103, 114, 622, 690, 813, 540, 599]
Example Output: [173, 929, 103, 599]

Example Input: [783, 523, 236, 239, 829, 627, 883, 577, 380, 74, 727, 937, 296, 792, 50, 712, 204]
Example Output:
[523, 239, 829, 883, 577, 727, 937]