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.

[317, 105, 677, 839]
[317, 677, 839]

[113, 953, 986, 463, 639, 173, 61, 998]
[113, 953, 463, 173, 61]

[983, 769, 934, 667, 991, 75, 47, 723, 293, 631, 419, 921, 127, 322, 79, 61]

[983, 769, 991, 47, 293, 631, 419, 127, 79, 61]