Happy numbers: Difference between revisions

Line 3,438:
 
{{FormulaeEntry|page=https://formulae.org/?script=examples/Happy_numbers}}
 
'''Solution.'''
 
The following function returns whether a given number is happy or not:
 
[[File:Fōrmulæ - Happy numbers 01.png]]
 
Retrieving the first 8 happy numbers
 
[[File:Fōrmulæ - Happy numbers 02.png]]
 
[[File:Fōrmulæ - Happy numbers 03.png]]
 
=={{header|Go}}==
2,120

edits