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.

[153, 556, 439, 760, 612, 174, 511, 334, 823, 843]
[439, 823]

[878, 277, 523, 164, 296, 731, 370, 139, 457, 777, 647]
[277, 523, 139, 457, 647]

[875, 89, 807, 232, 746, 633, 239, 664, 529, 351, 970, 127, 61, 595, 269, 127, 445]

[89, 239, 127, 61, 269, 127]