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: [813, 648, 5, 122, 533, 367, 653, 101, 257, 523, 146, 413, 397, 278, 488, 635, 104, 859, 359]

A: [5, 367, 653, 101, 257, 523, 397, 859, 359]
****
Q: [965, 448, 466, 509, 911, 379, 462, 313, 379, 7, 516, 5, 285, 918]

A: [509, 911, 379, 313, 379, 7, 5]
****
Q: [571, 144, 541, 218, 748, 245, 349, 863, 577, 709, 263, 253, 331, 172, 257, 201]

A:
[571, 541, 349, 863, 577, 709, 263, 331, 257]
****