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: [3, 761, 467, 65, 151, 124, 991]

A: [3, 761, 467, 151, 991]
****
Q: [151, 823, 632, 953, 459, 858, 199, 571, 364, 806, 715, 197, 907, 103, 365, 242, 547]

A: [151, 823, 953, 199, 571, 197, 907, 103, 547]
****
Q: [283, 635, 27, 812, 670, 506, 367, 103, 87, 646, 977]

A:
[283, 367, 103, 977]
****