anyprime xs = or (map prime xs) -- map does what you'd expect allprime xs = and (map prime xs)