Project Euler #29: Distinct powers

  • + 1 comment

    Wrong answer for the last 3 cases and I have no idea why... I get 9981236306 for n=100000

    Edit: My solution worked but it took to much memory (about 600MB for n=100000 [Limit is 512MB]) I noticed it after tc18 got a runtime error randomly

    I optimized the code and all testcases were accepted