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.

[598, 667, 772, 975]
[]

[894, 950, 599, 863, 124, 19, 680, 877, 251, 176, 971, 61, 727, 300, 521, 467, 251, 659, 929]
[599, 863, 19, 877, 251, 971, 61, 727, 521, 467, 251, 659, 929]

[849, 859, 849, 65, 139, 950, 523, 31]

[859, 139, 523, 31]