Ad
  • Default User Avatar

    wrong:

        p = f5 % 1000000000
        if p > 100000000 and is_prime(p):
    

    correct:

        p = f5 % 1000000000
        if f5 > 1000000000 and is_prime(p):
    

    This point is not reflected in the condition of the problem :(
    It should be explicitly stated that the last 9 digits can contain leading zeros, but the number itself must be at least 9 digits

  • Default User Avatar

    if they check only 9-digit prime, I successfully perform 11 tests (up to n = 20)

    if I check 8-digit and 9-digit prime, I successfully complete 21 tests (up to n = 100)

    If I check 7-digit prime also, then I do not carry out any successful test

    Is there something missing in the problem statement? Or is the prime test wrong?

  • Default User Avatar

    If no arguments are given, ball objects should instantiate with a "ball type" of "regular."

    ->

    If no arguments are given, ball objects should instantiate with a "ball type" of "regular".

    "regular" INSTEAD "regular."

  • Default User Avatar

    1 = 89,
    2 = 271,
    3 = 325,
    4 = 328,
    5 = 1025,
    6 = 1055,
    7 = 1081,
    8 = 1129,
    9 = 1169

    but in the test sq_cub_rev_prime(9) = 1129, why?
    1025, 1055, 1081 also have the required properties