Add filter_map and flatten_map to Prime_list.