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: [298, 919]

SOLUTION: [919]

PROBLEM: [761, 249, 347, 273, 877, 344, 73, 725]

SOLUTION: [761, 347, 877, 73]

PROBLEM: [311, 619, 41, 113, 23, 347, 499, 398, 586]

SOLUTION:
[311, 619, 41, 113, 23, 347, 499]