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: [846, 340, 113, 645, 538]

SOLUTION: [113]

PROBLEM: [877, 359, 757, 267, 89, 131, 127, 450, 97]

SOLUTION: [877, 359, 757, 89, 131, 127, 97]

PROBLEM: [258, 661, 864, 163, 419, 198, 296, 298]

SOLUTION:
[661, 163, 419]