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.

[EX Q]: [367, 241, 827, 887, 536, 827, 227]
[EX A]: [367, 241, 827, 887, 827, 227]

[EX Q]: [907, 790, 3, 704, 336, 134, 862, 500, 732, 245, 332, 179]
[EX A]: [907, 3, 179]

[EX Q]: [661, 190, 831, 97, 618, 212, 617, 37, 269, 698, 17, 915, 943, 176, 474, 74, 587, 36]
[EX A]:
[661, 97, 617, 37, 269, 17, 587]