pub fn are_all_factors<I>(num: I, queries: &[I]) -> boolwhere I: Int + Copy,
Check if all of the queried values are a factor of num.