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.

[718, 882, 311, 97, 31, 646, 146, 971]
[311, 97, 31, 971]

[652, 409, 683, 888, 751, 401, 859, 227]
[409, 683, 751, 401, 859, 227]

[319, 141, 586, 281, 297, 783, 65, 337, 937, 981, 23, 534, 97, 163, 746, 267, 250, 373, 25, 66]

[281, 337, 937, 23, 97, 163, 373]