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: [387, 89, 211, 27, 487, 20, 472, 233, 524, 265, 29, 785, 504, 587, 726, 560, 643]

Answer: [89, 211, 487, 233, 29, 587, 643]


Question: [710, 521, 814, 907, 311, 346, 751, 929, 79, 175, 582, 991, 716]

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


Question: [375, 934, 153, 82, 545, 859, 107, 415, 577, 313, 574, 373, 137, 594]

Answer:
[859, 107, 577, 313, 373, 137]