This script finds happy numbers plain and simple, starts to chug with ranges greater than about 100000 though, could use some optimization.
Adam burdge (2021). Happy Numbers Script (https://www.mathworks.com/matlabcentral/fileexchange/62939-happy-numbers-script), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.