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.

Q: [317, 105, 677, 839]

A: [317, 677, 839]
****
Q: [688, 993, 3, 101, 281, 674, 359, 246, 421, 491, 82, 565, 89, 493]

A: [3, 101, 281, 359, 421, 491, 89]
****
Q: [997, 217, 271, 7, 608, 167, 338, 544, 974, 239, 83, 503, 296, 883, 469, 18, 688]

A:
[997, 271, 7, 167, 239, 83, 503, 883]
****