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 Input:
[71, 89, 331, 23, 350, 510, 617]

Ex Output:
[71, 89, 331, 23, 617]


Ex Input:
[519, 638, 433, 401]

Ex Output:
[433, 401]


Ex Input:
[974, 360, 203, 158, 932, 829, 65, 874, 251, 97, 171, 197, 837, 704, 311, 513, 373, 967, 30, 974]

Ex Output:

[829, 251, 97, 197, 311, 373, 967]