Define accumulate to represent the generic behavior of operating a combiner over a set of numbers
Redefine accumulate to include a filter and examples filtering prime and relatively prime numbers from a list