Refactored prime_factors definition to a common module.
Added prime_factor_groups function.
Added num_divisors function.
Added correct solution to 12.
Fixed unused variable warning.
Simplified closure arguments.
Removed intermediate variable.
Removed int suffix - this can be inferred.