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.

[577, 941, 739, 367, 339, 607, 271, 299, 452, 523, 351, 307]
[577, 941, 739, 367, 607, 271, 523, 307]

[453, 32, 28, 2, 311, 103, 107, 92]
[2, 311, 103, 107]

[349, 402, 365, 521, 379, 612, 443, 581, 754, 446, 197, 683, 612, 387, 902, 83, 911]

[349, 521, 379, 443, 197, 683, 83, 911]