





from __future__ import annotations

from collections import Counter


def 			SCREAMING_SNAKE_CASE__     (					_lowercase    :   int )      ->       list[int]:




		'''simple docstring'''
		lowercase__				:			List[Any]            =		[True] * n
		lowercase__				:			Any            =		False
		lowercase__				:			Any            =		False
		lowercase__				:			Tuple            =		True

		for i in range(3      ,						int(n**0.5 + 1 )      ,						2 ):
				lowercase__				:			List[str]            =		i * 2
				while index < n:
						lowercase__				:			Any            =		False
						lowercase__				:			Any            =		index + i

		lowercase__				:			Any            =		[2]

		for i in range(3      ,						_lowercase      ,						2 ):
				if is_prime[i]:
						primes.append(_lowercase )

		return primes


def 			SCREAMING_SNAKE_CASE__     (					_lowercase    :   int )      ->       list[list[int]]:




		'''simple docstring'''
		lowercase__				:			List[Any]            =		str(_lowercase )
		lowercase__				:			List[Any]            =		[]
		lowercase__				:			Dict            =		['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']

		for duplicate in Counter(_lowercase ) - Counter(set(_lowercase ) ):
				lowercase__				:			Optional[Any]            =		[int(number_str.replace(_lowercase      ,						_lowercase ) ) for digit in digits]
				replacements.append(_lowercase )

		return replacements


def 			SCREAMING_SNAKE_CASE__     (					_lowercase    :   int = 8 )      ->       int:




		'''simple docstring'''
		lowercase__				:			List[Any]            =		set()

		# Filter primes with less than 3 replaceable digits
		lowercase__				:			List[Any]            =		{
		    x for x in set(prime_sieve(1_000_000 ) ) if len(str(_lowercase ) ) - len(set(str(_lowercase ) ) ) >= 3
		}

		for prime in primes:
				if prime in numbers_checked:
						continue

				lowercase__				:			Any            =		digit_replacements(_lowercase )

				for family in replacements:
						numbers_checked.update(_lowercase )
						lowercase__				:			Any            =		primes.intersection(_lowercase )

						if len(_lowercase ) != family_length:
								continue

						return min(_lowercase )

		return -1


if __name__ == "__main__":
			print(solution())









def 			SCREAMING_SNAKE_CASE__     (					_lowercase    :   int )      ->       bool:




		'''simple docstring'''
		lowercase__				:			Optional[int]            =		9

		while num > 0:
				if num % 10 != digit:
						return False
				num //= 100
				digit -= 1

		return True


def 			SCREAMING_SNAKE_CASE__     (					)      ->       int:




		'''simple docstring'''
		lowercase__				:			List[str]            =		138_902_663

		while not is_square_form(num * num ):
				if num % 10 == 3:
						num -= 6  # (3 - 6) % 10 = 7
				else:
						num -= 4  # (7 - 4) % 10 = 3

		return num * 10


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


