Write a program which finds the smallest number (excluding 1)whose sum of cubes of digits are equal to that number. The programshould print the number you found as output. Example: Assume thenumber you are testing is 29. 2^3 + 9^3 = 8 + 729 = 737. 737 is notequal to 29. So the number you are searching for is not 29. in javalanguage
Expert Answer
Answer to Write a program which finds the smallest number (excluding 1) whose sum of cubes of digits are equal to that number. The…