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: [71, 7, 251, 991, 311, 409, 14, 661, 158, 101, 937, 604, 431, 269, 937, 647, 631]

Answer: [71, 7, 251, 991, 311, 409, 661, 101, 937, 431, 269, 937, 647, 631]


Question: [677, 671, 254, 873]

Answer: [677]


Question: [617, 251, 643, 205, 107, 800, 113, 717, 43, 466, 272, 217, 448, 769, 981, 113, 131]

Answer:
[617, 251, 643, 107, 113, 43, 769, 113, 131]