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

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.



Page history last edited by Kenneth Finnegan 12 years, 3 months ago

Project Euler Problem #30


Seperate each digit using %10 to find ones digit, then divide by 10 to shift to next digit.  For some reason pow() from math.h wasn't working for me, so I just wrote a function to find the 5th power for me.


Not being smart, it takes about 5m30 seconds to solve.  Once I got into the forums, someone had a proof that there are no solutions past a smaller number, which brought the runtime down to 0.028 seconds.




Return to list of solutions

Comments (0)

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