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: [557, 677, 824, 60]

SOLUTION: [557, 677]

PROBLEM: [729, 929, 197, 577, 109, 305]

SOLUTION: [929, 197, 577, 109]

PROBLEM: [543, 46, 160, 790, 936, 471, 287, 292, 61, 639, 831, 277, 223, 389, 868, 274, 3, 583, 317]

SOLUTION:
[61, 277, 223, 389, 3, 317]