Nice Steak

Write a function called primes() that will "filter" a list to only have prime values.

The function will receive a Python list passed in as a parameter. It should return a new list containing only the prime numbers from the original list.

You should use your isPrime() function that you wrote for a previous assignment. Solutions that do not use isPrime() may not receive full credit.

Examples:




©2017 Graham Mitchell