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: [71, 89, 331, 23, 350, 510, 617]

Output: [71, 89, 331, 23, 617]


Input: Consider Input: [953, 179, 89, 658, 163, 633, 991, 814, 577, 580, 977, 757, 707, 307, 167, 411]

Output: [953, 179, 89, 163, 991, 577, 977, 757, 307, 167]


Input: Consider Input: [359, 129, 846, 3, 727, 977, 998, 71, 476, 839, 241]


Output: [359, 3, 727, 977, 71, 839, 241]