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.

[647, 316, 282, 429, 139, 731, 489, 15, 421, 582, 499, 336]
[647, 139, 421, 499]

[808, 739, 546, 228, 977, 419, 862, 419, 189, 787, 827, 507, 853, 803, 23, 463, 840, 153]
[739, 977, 419, 419, 787, 827, 853, 23, 463]

[101, 971, 37, 229, 519, 42, 184, 204, 701, 241, 101, 49, 189, 766, 277, 499, 839, 76, 563, 401]

[101, 971, 37, 229, 701, 241, 101, 277, 499, 839, 563, 401]