Skip to content

My implementation of solving happy numbers: add the square of the digits of the number. If the result number you get now is equal to 1, then it is happy. If not, you continue this process with the result number until you either get a number that is equal to 1, or you will find yourselves trapped in a sequence of numbers.

Notifications You must be signed in to change notification settings

Rickyp/HappyNumbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

About

My implementation of solving happy numbers: add the square of the digits of the number. If the result number you get now is equal to 1, then it is happy. If not, you continue this process with the result number until you either get a number that is equal to 1, or you will find yourselves trapped in a sequence of numbers.

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages