pub fn is_factor<I>(num: I, query: I) -> boolwhere I: Int,
Check if the queried value is a factor of num.