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.

Input: Consider Input: [591, 772, 276, 23, 995, 217, 719, 31, 776, 155, 857, 642]

Output: [23, 719, 31, 857]

Input: Consider Input: [669, 457, 576, 655, 743, 627, 853, 627, 653, 773, 197, 811, 465, 983, 277, 983]

Output: [457, 743, 853, 653, 773, 197, 811, 983, 277, 983]

Input: Consider Input: [577, 941, 739, 367, 339, 607, 271, 299, 452, 523, 351, 307]
Output: [577, 941, 739, 367, 607, 271, 523, 307]