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: [718, 882, 311, 97, 31, 646, 146, 971]

Output: [311, 97, 31, 971]


Input: Consider Input: [3, 761, 467, 65, 151, 124, 991]

Output: [3, 761, 467, 151, 991]


Input: Consider Input: [186, 181, 437, 584, 73, 677, 946, 167, 403, 66, 41, 941, 852, 139, 992, 649]


Output: [181, 73, 677, 167, 41, 941, 139]