Given positive integer x, write the function gSum(x), that sums all the GCD's of the integer pairs
. For example in the Excel screenshot below, it is claro that when
, the function should return
.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers5
Suggested Problems
-
Project Euler: Problem 2, Sum of even Fibonacci
2930 Solvers
-
Calculate the Hamming distance between two strings
349 Solvers
-
Replace all zeros and NaNs in a matrix with the string 'error'
104 Solvers
-
Convert double scalar to half-precision floating point (IEEE 754r)
9 Solvers
-
57 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!