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.

[427, 347]
[347]

[277, 83, 991, 978, 936, 801]
[277, 83, 991]

[256, 571, 329, 677, 28, 632, 599, 73, 885, 588, 587, 938, 36, 169, 7, 461, 25, 972, 142, 594]

[571, 677, 599, 73, 587, 7, 461]