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: [786, 624, 597, 682, 641, 23, 590, 222, 271, 305, 61, 29, 37, 42, 788, 904]

SOLUTION: [641, 23, 271, 61, 29, 37]

PROBLEM: [98, 300, 577, 355, 794, 585, 641, 842, 263, 19]

SOLUTION: [577, 641, 263, 19]

PROBLEM: [870, 364, 829, 859, 427, 769, 41, 31, 89, 876, 206, 30, 725, 697, 171, 281, 59, 223]

SOLUTION:
[829, 859, 769, 41, 31, 89, 281, 59, 223]