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: [586, 33, 151, 316, 894, 936, 729, 23, 797, 179]

Answer: [151, 23, 797, 179]


Question: [557, 677, 824, 60]

Answer: [557, 677]


Question: [389, 245, 107, 953, 853, 157, 457, 271, 367, 62, 376, 727, 47, 846, 51, 957, 2, 878, 743, 404]

Answer:
[389, 107, 953, 853, 157, 457, 271, 367, 727, 47, 2, 743]