Happy numbers X13195


Statement
 

pdf   zip

html

Input The input of the program is a positive integer.

Output The program must find all happy numbers smaller than the provided one.

Public test cases
  • Input

    20
    

    Output

    1
    7
    10
    13
    19
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    Java
    User solutions
    C++ Python