QB / QB64 Discussion Forum      Other Subforums, Links and Downloads

 Return to Index  

You're getting closer

February 22 2012 at 12:44 PM
lawgin  (no login)

Response to Can I have another guess?


I couldn't think of any clever way to solve this problem. I didn't want to have to find a way to compute 200 digit integers, so I merely expressed them as strings of their prime factors in ascending order, then compared the strings to weed out the duplicates. Example: 84 = 2^2*3*7, so 84^45 = 2^90*3^45*7^45. Each number is expressed uniquely in this way.

Btw, if you want to check your answers log on to projecteuler.net and go to Problem #29.

 Respond to this message   

 Copyright © 1999-2018 Network54. All rights reserved.   Terms of Use   Privacy Statement