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: [337, 76, 431, 311, 78, 785, 181, 373, 832, 18]

Output: [337, 431, 311, 181, 373]


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

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


Input: Consider Input: [92, 521, 829, 179, 878, 609, 205, 421, 380, 798, 766, 784, 692, 909, 189, 407, 582, 829, 587, 512]


Output: [521, 829, 179, 421, 829, 587]