Rosetta Code

Narcissistic decimal number

Identify fixed sample numbers that equal the sum of their digits raised to the digit count.

Edit the source, then Run. Checks start after your first Run. Ctrl/⌘ + Enter runs; Tab indents. Preview services use sample data and never contact a real service.

rosettacode/popular/narcissistic_decimal_number.vibe
Output
Click Run example to see the result.

Code checks

Run once to load the checker. Your code stays in this browser.