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: [47, 239, 313, 797, 687, 787, 311]

SOLUTION: [47, 239, 313, 797, 787, 311]

PROBLEM: [859, 706, 462, 499, 936, 277, 216, 43, 263, 877, 163, 521, 661, 785, 35, 683]

SOLUTION: [859, 499, 277, 43, 263, 877, 163, 521, 661, 683]

PROBLEM: [563, 647, 463, 443, 22, 905, 437, 594, 673, 983, 337, 881, 317, 17, 617, 409, 204, 839]

SOLUTION:
[563, 647, 463, 443, 673, 983, 337, 881, 317, 17, 617, 409, 839]