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: [598, 598, 369, 751, 523, 29, 887, 859, 673, 13, 547, 710, 156, 471]

Answer: [751, 523, 29, 887, 859, 673, 13, 547]


Question: [613, 678, 877, 795, 945, 335, 300, 987, 590, 596, 775]

Answer: [613, 877]


Question: [349, 309, 165, 702, 451, 941, 261, 308, 637, 839, 859, 677, 281]

Answer:
[349, 941, 839, 859, 677, 281]