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.

[EX Q]: [23, 985, 845, 367, 464, 29, 607, 977, 143, 193, 383, 719, 139, 746, 830, 489]
[EX A]: [23, 367, 29, 607, 977, 193, 383, 719, 139]

[EX Q]: [877, 433, 256, 133, 2, 571, 541, 711, 719, 410, 311, 409, 557, 174, 278, 731, 677, 937, 265]
[EX A]: [877, 433, 2, 571, 541, 719, 311, 409, 557, 677, 937]

[EX Q]: [79, 517, 705, 509, 37, 503, 652, 613, 187, 72, 718, 698, 523, 881, 218, 467, 468, 839, 107, 157]
[EX A]:
[79, 509, 37, 503, 613, 523, 881, 467, 839, 107, 157]