TASK DEFINITION: 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.
PROBLEM: [442, 761, 187, 907]

SOLUTION: [761, 907]

PROBLEM: [814, 5, 3, 289, 833, 197, 359, 598, 271, 743, 838, 411, 344, 469, 3]

SOLUTION: [5, 3, 197, 359, 271, 743, 3]

PROBLEM: [795, 665, 47, 151, 518, 651, 981, 677, 788]

SOLUTION:
[47, 151, 677]