Project Euler #92: Square digit chains

  • + 3 comments

    I am getting time out after three test cases? any help.Is there any specific pattern in happy numbers and unhappy numbers(two types of numbers mentioned in the problem)