A happy prime is a prime number that is also a happy number. Thus repeated replacement of the integer by the sum of the squares of its decimal digits eventually reaches 1. The first happy primes are
(OEIS A035497).
A happy prime is a prime number that is also a happy number. Thus repeated replacement of the integer by the sum of the squares of its decimal digits eventually reaches 1. The first happy primes are
(OEIS A035497).
Weisstein, Eric W. "Happy Prime." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/HappyPrime.html