| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

PE034

Page history last edited by Kenneth Finnegan 15 years, 7 months ago

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

Comments (0)

You don't have permission to comment on this page.