Hardy's Numbers

Type "help hardy".


Updated 9 Jun 2003

No License

Hardy who discovered the mathematical genius in Ramanujan was a great mathematician himself. He once said there are only four numbers whose sum of the cubes of their individual digits add up to the number itself. If 153 is the number,


This program will calculate those numbers.

Cite As

Prabhakar Subrahmanyam (2023). Hardy's Numbers (https://www.mathworks.com/matlabcentral/fileexchange/3561-hardy-s-numbers), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes