

def       snake_case__    (       lowerCAmelCase_ = 20      ):





     """simple docstring"""







     try:
          SCREAMING_SNAKE_CASE										=       int(lowerCAmelCase_      )
     except (TypeError, ValueError):
          raise TypeError('Parameter n must be int or castable to int.'      )
     if n <= 0:
          raise ValueError('Parameter n must be greater than or equal to one.'      )
     SCREAMING_SNAKE_CASE										=       0
     while 1:
          i += n * (n - 1)
          SCREAMING_SNAKE_CASE										=       0
          for j in range(2,   lowerCAmelCase_      ):
               if i % j != 0:
                    SCREAMING_SNAKE_CASE										=       1
                    break
          if nfound == 0:
               if i == 0:
                    SCREAMING_SNAKE_CASE										=       1
               return i
     return None


if __name__ == "__main__":
 print(f'{solution() = }')




def       snake_case__    (       lowerCAmelCase_,   lowerCAmelCase_,   lowerCAmelCase_      ):





     """simple docstring"""







     if power < 0:
          return -1
     base %= mod
     SCREAMING_SNAKE_CASE										=1

     while power > 0:
          if power & 1:
               SCREAMING_SNAKE_CASE										=(result * base) % mod
          SCREAMING_SNAKE_CASE										=power >> 1
          SCREAMING_SNAKE_CASE										=(base * base) % mod

     return result







def       snake_case__    (       ):





     """simple docstring"""







     print(modular_exponential(3,   200,   13      )      )


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 main()

