Problem 1008. Determine if input is a Narcissistic number

Narcissistic number is a number that is the sum of its own digits each raised to the power of the number of digits.

for example:

153 = 1^3 + 5^3 + 3^3

return true

101 ~= 1^3 + 0 ^3 + 1^3

return false

Solution Stats

63.06% Correct | 36.94% Incorrect
Last solution submitted on Aug 14, 2017


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!