Ad
  • Default User Avatar

    OK. I completed the description for that case:

    In such a case (no pair of prime numbers with a gap of `g`)
    In C: return [0, 0]
    ...
    
  • Default User Avatar

    In the C language version, unlike for example the Java version, if the solution is not found, an array with [0, 0] instead of NULL is requested. The request should be changed or the automatic tests rewritten.