Skip to main content
1 of 4
Unrelated String
  • 23k
  • 3
  • 32
  • 55

Jelly, 16 bytes

J:g¥’}U×ḷb§¥ƬṪS%

Try it online!

A less naive computation of the digital roots comes out a bit longer by having to special-case 0.

Unrelated String
  • 23k
  • 3
  • 32
  • 55