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]: [367, 241, 827, 887, 536, 827, 227]
[A]: [367, 241, 827, 887, 827, 227]


[Q]: [587, 743, 125, 314, 449, 167, 328, 140, 172, 595, 97, 932, 381, 73, 197]
[A]: [587, 743, 449, 167, 97, 73, 197]


[Q]: [74, 146, 953, 846, 67, 699, 607, 654, 354, 53, 419, 869, 605, 13, 197, 611, 787, 29, 31, 917]
[A]:
[953, 67, 607, 53, 419, 13, 197, 787, 29, 31]