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.

[Q]: [718, 882, 311, 97, 31, 646, 146, 971]
[A]: [311, 97, 31, 971]


[Q]: [148, 947, 921, 661, 639, 911]
[A]: [947, 661, 911]


[Q]: [919, 544, 827, 722, 830, 415, 127, 970, 552, 218, 488, 454]
[A]:
[919, 827, 127]