Project Euler #207: Integer partition equations

  • + 0 comments

    C++14.

    Correct for 0,1. Timeout for 2,10. Incorrect for 3,4,5,6,7,8,9.

    I have an idea how to speed up my script, but I don't know why it's failing for the majority of the scripts. I get the correct answer on Project Euler's site...

    edit: I was missing precision, using ints instead of longs. 2 to 10 now timeout instead of fail.