Ad
  • Default User Avatar

    C fork

    • proper use of the test framework
    • it is explained what kind of pointer to return
    • better assertion messages
  • Custom User Avatar

    No, because between 307 and 317 there are two other prime numbers.

    A prime gap of length n is a run of n-1 consecutive composite numbers between two successive primes

  • Custom User Avatar

    Please read the description again, that exact case is explained there.

  • Custom User Avatar

    The test with [300,400] with a gap of 10, there is a pair before 337, and it's 307 and 317

  • Custom User Avatar

    The test with [100,110] with a gap of six, the reuslt isn't null, beacause there is the pair [101,107]