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.

Example Input: [871, 360, 588, 719, 599, 719, 461]
Example Output: [719, 599, 719, 461]

Example Input: [577, 941, 739, 367, 339, 607, 271, 299, 452, 523, 351, 307]
Example Output: [577, 941, 739, 367, 607, 271, 523, 307]

Example Input: [189, 601, 661, 490, 298, 879, 419, 456, 861, 746, 557, 683, 787, 903, 26, 951]
Example Output:
[601, 661, 419, 557, 683, 787]