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: [487, 618, 757, 427, 757, 461, 86, 263, 911, 954, 447, 445, 866, 67, 248, 959, 833, 412]

A: [487, 757, 757, 461, 263, 911, 67]
****
Q: [277, 888, 263, 883, 420, 818]

A: [277, 263, 883]
****
Q: [775, 31, 37, 581, 489, 59, 218, 11, 89, 686, 11, 509, 384, 491, 5, 275, 787]

A:
[31, 37, 59, 11, 89, 11, 509, 491, 5, 787]
****