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: [649, 709, 683, 487]

Answer: [709, 683, 487]


Question: [814, 5, 3, 289, 833, 197, 359, 598, 271, 743, 838, 411, 344, 469, 3]

Answer: [5, 3, 197, 359, 271, 743, 3]


Question: [587, 601, 479, 489, 188, 314, 825, 149, 583, 994, 6, 241, 5, 947, 829, 114, 37, 863, 712, 55]

Answer:
[587, 601, 479, 149, 241, 5, 947, 829, 37, 863]