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]: [677, 397]
[EX A]: [677, 397]

[EX Q]: [946, 829, 509, 419, 654, 712, 727, 563, 405, 599, 462, 956, 337, 821]
[EX A]:
[829, 509, 419, 727, 563, 599, 337, 821]