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: [131, 821, 95, 47, 227, 364, 470, 512, 798]

Answer: [131, 821, 47, 227]


Question: [245, 945, 936, 569, 823, 193, 997, 131, 353, 769, 873, 687, 269, 167]

Answer: [569, 823, 193, 997, 131, 353, 769, 269, 167]


Question: [823, 609, 316, 69, 659, 457, 582, 70, 126, 977, 89, 433, 539, 189, 348, 16, 751, 863, 754, 553]

Answer:
[823, 659, 457, 977, 89, 433, 751, 863]