instruction:
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:
[120, 509]
answer:
[509]


question:
[965, 448, 466, 509, 911, 379, 462, 313, 379, 7, 516, 5, 285, 918]
answer:
[509, 911, 379, 313, 379, 7, 5]


question:
[997, 263, 743, 89, 337, 47, 207, 139, 119, 508, 383, 389, 863, 17, 27, 540, 998, 761, 317, 7]
answer:

[997, 263, 743, 89, 337, 47, 139, 383, 389, 863, 17, 761, 317, 7]