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]: [817, 505, 502, 436, 947, 607, 737, 626, 577, 737, 811, 864, 941, 561, 31]
[EX A]: [947, 607, 577, 811, 941, 31]

[EX Q]: [941, 701, 867, 167, 601, 75, 91, 620, 677, 907, 991, 118, 491, 550, 310]
[EX A]: [941, 701, 167, 601, 677, 907, 991, 491]

[EX Q]: [879, 508, 482, 496, 313, 167, 21, 23, 936, 43, 454, 127, 319, 647, 138, 859, 457, 331]
[EX A]:
[313, 167, 23, 43, 127, 647, 859, 457, 331]