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]: [534, 373, 152, 780, 233, 43, 7, 241, 631, 465, 277, 518, 601, 583, 521, 524, 494]
[EX A]: [373, 233, 43, 7, 241, 631, 277, 601, 521]

[EX Q]: [577, 941, 739, 367, 339, 607, 271, 299, 452, 523, 351, 307]
[EX A]: [577, 941, 739, 367, 607, 271, 523, 307]

[EX Q]: [929, 647, 19, 821, 847, 931, 182, 912]
[EX A]:
[929, 647, 19, 821]