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.
--------
Question: [427, 347]

Answer: [347]


Question: [689, 401, 526, 193, 545, 218, 949]

Answer: [401, 193]


Question: [461, 67, 335, 451, 571, 149, 548, 29, 619, 838, 317, 504, 947, 229, 487]

Answer:
[461, 67, 571, 149, 29, 619, 317, 947, 229, 487]