Class PE0038

    • Constructor Summary

      Constructors 
      Constructor Description
      PE0038()
      A simple constructor to set number and title.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PE0038

        public PE0038()
        A simple constructor to set number and title.
    • 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 be pandigital. 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)