Problem 202 · Easy

Happy Number

Determine if a number is happy (sum of squares of digits eventually reaches 1).

Open the interactive visualisation