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.

Q: [723, 791, 587, 73, 601, 733, 842, 277, 983]

A: [587, 73, 601, 733, 277, 983]
****
Q: [457, 229, 172, 719, 714, 53, 811, 347, 978, 608, 953, 114, 491, 748, 424, 134, 102, 101, 961, 911]

A: [457, 229, 719, 53, 811, 347, 953, 491, 101, 911]
****
Q: [277, 937, 761, 681, 334, 259, 239, 880, 907, 896, 389, 443, 649, 431, 937, 824, 785, 890, 781, 173]

A:
[277, 937, 761, 239, 907, 389, 443, 431, 937, 173]
****