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.

Q: [591, 772, 276, 23, 995, 217, 719, 31, 776, 155, 857, 642]

A: [23, 719, 31, 857]
****
Q: [31, 113, 72, 467, 691, 459, 157, 69, 941, 115, 190, 311, 652, 958, 727, 995, 503, 929]

A: [31, 113, 467, 691, 157, 941, 311, 727, 503, 929]
****
Q: [352, 492, 503, 721, 953, 537, 823, 966, 389, 829, 769, 473, 443, 108, 451]

A:
[503, 953, 823, 389, 829, 769, 443]
****