From 57729bf37fe06dd7e34569894b56bee77d653adf Mon Sep 17 00:00:00 2001 From: chestamittal <53469607+chestamittal@users.noreply.github.com> Date: Mon, 26 Oct 2020 00:00:43 +0530 Subject: [PATCH] Update math/lcm_sum.cpp Co-authored-by: David Leal --- math/lcm_sum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/lcm_sum.cpp b/math/lcm_sum.cpp index a27f6d239..4800ed66a 100644 --- a/math/lcm_sum.cpp +++ b/math/lcm_sum.cpp @@ -25,7 +25,7 @@ namespace math { * @param num input number * @returns int Sum of LCMs, i.e. ∑LCM(i, num) from i = 1 to num */ - uint64_t lcmSum(uint64_t num) { + uint64_t lcmSum(uint16_t num) { uint64_t i=0, j=0; std::vector eulerTotient(num+1);