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]: [317, 105, 677, 839]
[EX A]: [317, 677, 839]

[EX Q]: [428, 494, 971, 521, 358, 260, 91, 429, 540, 846, 458, 279, 228]
[EX A]: [971, 521]

[EX Q]: [506, 947, 421, 689, 37, 471, 926, 863, 221, 547]
[EX A]:
[947, 421, 37, 863, 547]