Package net.n1da.dev.euler
Class PE0040
- java.lang.Object
-
- net.n1da.dev.euler.core.Problem
-
- net.n1da.dev.euler.PE0040
-
- All Implemented Interfaces:
Solvable
public class PE0040 extends Problem
Solution for problem 40 "Champernowne's constant" completed on Wed, 4 May 2016, 22:40.- Since:
- 04.05.2016 21:21:21
- Author:
- Nico Danneberg
- See Also:
- Problem @ Project Euler, Solution @ Ni-Da-Net
-
-
Method Summary
Modifier and Type Method Description java.lang.String
solve()
It solves the problem by incrementing aLargeNumber
and testing if the length runs over the next wanted digit.
-
-
-
Method Detail
-
solve
public java.lang.String solve()
It solves the problem by incrementing aLargeNumber
and testing if the length runs over the next wanted digit. If a number is found the needed digit is multiplied to the result.- Returns:
- the product of the wanted digits
- See Also:
LargeNumber
-
-