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.
--------
Question: [904, 73, 539, 689, 227, 383, 26, 139, 787, 223, 887, 43, 821, 877, 510, 347, 307, 253, 54]

Answer: [73, 227, 383, 139, 787, 223, 887, 43, 821, 877, 347, 307]


Question: [829, 371, 377, 497, 839, 5, 653, 617, 907, 867, 827, 350, 399, 947, 483, 601, 577]

Answer: [829, 839, 5, 653, 617, 907, 827, 947, 601, 577]


Question: [360, 999, 692, 89, 67, 331, 977, 158, 382, 644, 942, 543, 977, 923, 265, 281, 673, 999, 310, 455]

Answer:
[89, 67, 331, 977, 977, 281, 673]