Project Euler #157: Solving the diophantine equation 1/a +1/b = p/10^n

  • Challenge Author
    + 0 comments

    Hello Jurgen! Thank you for your question! Here are the answers:

    1) {a,b,p} is a tuple in this problem, which means, order does matter. So in your example all solutions are different.

    2) p doesn't have to be prime. Only p1 and p2 are primes as mentioned in the problem statement.