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.
--------
Question: [652, 797, 31, 67, 22, 818, 234, 174, 146]

Answer: [797, 31, 67]


Question: [766, 653]

Answer: [653]


Question: [65, 71, 335, 940, 247, 330, 548, 491, 964, 909, 222, 539]

Answer:
[71, 491]