B:BD[
3.5724] → [
3.5724:5792]
|accumulator_a, subset_size| -> Result<u32, CreationError<u32>> {
let sum = CombinationsWithoutReplacement::new(factors, subset_size)?.fold(
0,
|accumulator_b, combination| {
accumulator_b
+ UnsignedMultiples::new(combination.iter().product(), limit).sum::<u32>()
},
);
|accumulator, subset_size| -> Result<u32, CreationError<u32>> {
let sum: u32 = CombinationsWithoutReplacement::new(factors, subset_size)?
.map(|combination| {
UnsignedMultiples::new(combination.iter().product(), limit).sum::<u32>()
})
.sum();