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: [607, 793, 817, 577, 578, 379, 47, 769, 442]

Answer: [607, 577, 379, 47, 769]


Question: [309, 638, 673, 582, 779, 25, 971, 448, 223, 574, 571, 389, 619]

Answer: [673, 971, 223, 571, 389, 619]


Question: [97, 293, 338, 139, 293, 547]

Answer:
[97, 293, 139, 293, 547]