The arithmetic derivative is defined by
For example, 20' = 24.
Find ∑ gcd(k,k') for 1 < k ≤ 5×1015.
Note: gcd(x,y) denotes the greatest common divisor of x and y.