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: [729, 929, 197, 577, 109, 305]

Answer: [929, 197, 577, 109]


Question: [937, 154, 263, 647, 820, 979, 887, 343, 793]

Answer: [937, 263, 647, 887]


Question: [180, 567, 336, 787, 791, 440, 489, 961, 883, 668, 727]

Answer:
[787, 883, 727]