Skip to content

Refactor Armstrong number calculation logic#1552

Closed
fayasnoushad wants to merge 1 commit intoTheAlgorithms:masterfrom
fayasnoushad:patch-1
Closed

Refactor Armstrong number calculation logic#1552
fayasnoushad wants to merge 1 commit intoTheAlgorithms:masterfrom
fayasnoushad:patch-1

Conversation

@fayasnoushad
Copy link
Member

Description of Change

An Armstrong number (or narcissistic number) is a number that equals the sum of its own digits, each raised to the power of the total number of digits

eg:-
153 -> 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153
1634 -> 1^4 + 6^4 + 4^4 + 3^4 = 1 + 1296 + 81 + 256 = 1634

An Armstrong number (or narcissistic number) is a number that equals the sum of its own digits, each raised to the power of the total number of digits

eg:-
153 -> 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153
1634 -> 1^4 + 6^4 + 4^4 + 3^4 = 1 + 1296 + 81 + 256 = 1634
@github-actions
Copy link
Contributor

This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Feb 26, 2026
@fayasnoushad fayasnoushad marked this pull request as draft February 26, 2026 08:46
@fayasnoushad fayasnoushad marked this pull request as ready for review February 26, 2026 08:46
@fayasnoushad fayasnoushad marked this pull request as draft February 26, 2026 08:47
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Please ping one of the maintainers once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to ask for help in our Gitter channel or our Discord server. Thank you for your contributions!

@github-actions github-actions bot closed this Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant