

"""simple docstring"""




import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info



def 						UpperCAmelCase__ (					A__ )   ->   Optional[Any]:




   """simple docstring"""


   class 		_A							:





         def __init__(	self     ,    SCREAMING_SNAKE_CASE__		) ->       None:
            assert isinstance(SCREAMING_SNAKE_CASE__     ,    (bytes, str)		)
            lowerCamelCase__						       =      content





         def        _lowerCamelCase	(	self		) ->       Union[str, Any]:
            return json.loads(self.content		)

   def mock_response(*A__						,     **A__ ):
      assert args[0] == AUTHENTICATED_USER_ENDPOINT
      assert "Authorization" in kwargs["headers"]
      assert kwargs["headers"]["Authorization"].startswith("token " )
      assert "Accept" in kwargs["headers"]
      return FakeResponse(b"{\"login\":\"test\",\"id\":1}" )

   monkeypatch.setattr(A__						,     "get"						,     A__ )
   lowerCamelCase__						       =      fetch_github_info("token" )
   assert result["login"] == "test"
   assert result["id"] == 1







"""simple docstring"""




from __future__ import annotations

import math
from itertools import permutations



def 						UpperCAmelCase__ (					A__ )   ->   bool:




   """simple docstring"""

   if 1 < number < 4:
      # 2 and 3 are primes
      return True
   elif number < 2 or number % 2 == 0 or number % 3 == 0:
      # Negatives, 0, 1, all even numbers, all multiples of 3 are not primes
      return False

   # All primes number are in format of 6k +/- 1
   for i in range(5						,     int(math.sqrt(A__ ) + 1 )						,     6 ):
      if number % i == 0 or number % (i + 2) == 0:
         return False
   return True



def 						UpperCAmelCase__ (					A__ = 7 )   ->   int:




   """simple docstring"""
   lowerCamelCase__						       =      "".join(str(A__ ) for i in range(1						,     n + 1 ) )
   lowerCamelCase__						       =      [int("".join(A__ ) ) for i in permutations(A__						,     A__ )]
   lowerCamelCase__						       =      [num for num in perm_list if is_prime(A__ )]
   return max(A__ ) if pandigitals else 0


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




