Project Euler #134: Prime pair connection

  • + 1 comment

    for L,R in higher range i.e. 10^6 - 10^9 the final answer overflows long int range in cpp hence can only be represented as strings.

    • + 0 comments

      You must store two numbers l1 and l2. l1 = answer/base and l2 = answer%base. Can avoid strings. Got AC with 100 points.