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: [710, 521, 814, 907, 311, 346, 751, 929, 79, 175, 582, 991, 716]

Answer: [521, 907, 311, 751, 929, 79, 991]


Question: [599, 355, 286, 51, 89, 831, 191, 90]

Answer: [599, 89, 191]


Question: [919, 749, 418, 29, 13, 463, 64, 787, 87, 971]

Answer:
[919, 29, 13, 463, 787, 971]