Update math/lcm_sum.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
chestamittal
2020-10-20 01:40:10 +05:30
committed by chestamittal
parent 261960cfb0
commit 6dc89cc441

View File

@@ -8,14 +8,14 @@
* @author [Chesta Mittal](https://github.com/chestamittal)
*/
#include <iostream> // for std::cin std::cout
#include <cassert> // for assert
#include <vector> // dor std::vector
#include <iostream> /// for std::cin and std::cout
#include <cassert> /// for assert
#include <vector> /// for std::vector
/**
* Function to compute sum of euler totients in sumOfEulerTotient vector
* @param num input number
* @returns int
* @returns int Sum of LCMs, i.e. ∑LCM(i, num) from i = 1 to num
*/
int lcmSum(int num) {