P484
projecteuler.net

Arithmetic Derivative

ℹ️Published on Saturday, 11th October 2014, 01:00 pm; Solved by 442;
Difficulty rating: 100%

The arithmetic derivative is defined by

  • $p^\prime = 1$ for any prime $p$
  • $(ab)^\prime = a^\prime b + ab^\prime$ for all integers $a, b$ (Leibniz rule)

For example, $20^\prime = 24$.

Find $\sum \operatorname{\mathbf{gcd} }(k,k^\prime)$ for $1 \lt k \le 5 \times 10^{15}$.

Note: $\operatorname{\mathbf{gcd} }(x,y)$ denotes the greatest common divisor of $x$ and $y$.



Soluzione

Last modified: June 14, 2025. Website built with Franklin.jl and the lovely Julia programming language.