← Interval & Math
Interval & Math Target: 10s
Digit-square-sum with cycle detection (fast/slow or set) determines happiness.
def digit_sq_sum(n): s = 0 while n: n, d = divmod(n, 10) s += d * d return s
Type it from memory. Go.