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: [144, 523, 606, 391]

SOLUTION: [523]

PROBLEM: [503, 827, 191, 80, 171, 965, 634, 796, 962]

SOLUTION: [503, 827, 191]

PROBLEM: [531, 935, 995, 671, 963, 518, 426, 727, 739, 568, 712, 833, 941, 283, 524, 490, 622, 409, 2, 598]

SOLUTION:
[727, 739, 941, 283, 409, 2]