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: [577, 941, 739, 367, 339, 607, 271, 299, 452, 523, 351, 307]

Output: [577, 941, 739, 367, 607, 271, 523, 307]


Input: Consider Input: [99, 65, 899, 219, 586, 663, 839, 277, 173, 683, 71, 683, 739, 493, 490]

Output: [839, 277, 173, 683, 71, 683, 739]


Input: Consider Input: [349, 653, 787, 946, 953, 881, 398, 569, 599, 987, 722, 227, 279, 71, 79, 790, 109]


Output: [349, 653, 787, 953, 881, 569, 599, 227, 71, 79, 109]