Package net.n1da.dev.euler
Class PE0034
- java.lang.Object
-
- net.n1da.dev.euler.core.Problem
-
- net.n1da.dev.euler.PE0030
-
- net.n1da.dev.euler.PE0034
-
- All Implemented Interfaces:
Solvable
public class PE0034 extends PE0030
Solution for problem 34 "Digit factorials" completed on Sat, 2 Jan 2016, 00:31.- Since:
- 01.01.2016 14:27:33
- Author:
- Nico Danneberg
- See Also:
- Problem @ Project Euler, Solution @ Ni-Da-Net
-
-
Method Summary
Modifier and Type Method Description protected LargeNumber
getDigitSum(LargeNumber num)
Calculates the sum of all digits of the given number.-
Methods inherited from class net.n1da.dev.euler.core.Problem
finish, getResult, getRuntime, toString
-
-
-
-
Method Detail
-
getDigitSum
protected LargeNumber getDigitSum(LargeNumber num)
Calculates the sum of all digits of the given number. Therefore the factorial of every digit is used- Overrides:
getDigitSum
in classPE0030
- Parameters:
num
- aLargeNumber
to calculate the sum of its digits- Returns:
- the sum of the factorial digits as new
LargeNumber
- See Also:
LargeNumber.sumOfDigitFactorials()
-
-