PE034


Project Euler Problem #34

 

The only trick for this problem is finding a upper bound.  9! = 362,880.  Multiply that by 7 gives 9!*7 = 2,540,160, where multiplying by 8 still only gives a 7 digit number, which shows that no number over 2,540,160 is going to possibly add up to itself.

 

 

Runtime: 0.476 seconds

PE034_c

 


Return to list of solutions