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: [457, 229, 172, 719, 714, 53, 811, 347, 978, 608, 953, 114, 491, 748, 424, 134, 102, 101, 961, 911]

Answer: [457, 229, 719, 53, 811, 347, 953, 491, 101, 911]


Question: [698, 846, 789, 347, 514, 521, 540]

Answer:
[347, 521]