Hardy's Numbers

Type "help hardy".

You are now following this Submission

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,

(1^3)+(5^3)+(3^3)=153.

This program will calculate those numbers.

Cite As

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

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0