Package net.n1da.dev.euler
Class PE0038
- java.lang.Object
-
- net.n1da.dev.euler.core.Problem
-
- net.n1da.dev.euler.PE0038
-
- All Implemented Interfaces:
Solvable
public class PE0038 extends Problem
Solution for problem 38 "Pandigital multiples" completed on Sun, 20 Mar 2016, 18:44.- Since:
- 14.03.2016 20:35:24
- Author:
- Nico Danneberg
- See Also:
- Problem @ Project Euler, Solution @ Ni-Da-Net
-
-
Method Summary
Modifier and Type Method Description java.lang.String
solve()
Multiplies every number between 2 and 9999 with factors beginning from 1 as long as all products concatenated are shorter than 9 digits.
-
-
-
Method Detail
-
solve
public java.lang.String solve()
Multiplies every number between 2 and 9999 with factors beginning from 1 as long as all products concatenated are shorter than 9 digits. If the result is exactly 9 digits long it is tested to bepandigital
. If this is true it is checked to be the largest result found ever.- Returns:
- the largest pandigital string of products
- See Also:
Mathe.isPandigital(String)
-
-