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: [423, 641, 227, 916, 421]

Answer: [641, 227, 421]


Question: [183, 3, 863, 610, 523, 52, 359, 286, 751, 521, 312, 6, 606]

Answer:
[3, 863, 523, 359, 751, 521]