From 2d415763d7f456fc5313bee05dfe746e4614dd67 Mon Sep 17 00:00:00 2001 From: chestamittal <53469607+chestamittal@users.noreply.github.com> Date: Tue, 27 Oct 2020 01:09:08 +0530 Subject: [PATCH] Update math/lcm_sum.cpp Co-authored-by: Ayaan Khan --- 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 4800ed66a..34b46020f 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(uint16_t num) { + uint64_t lcmSum(const uint16_t& num) { uint64_t i=0, j=0; std::vector eulerTotient(num+1);