




from __future__ import annotations

import math
def 					lowerCamelCase_    (    SCREAMING_SNAKE_CASE   ):
			'''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(SCREAMING_SNAKE_CASE   ) + 1   )					,	6   ):
						if number % i == 0 or number % (i + 2) == 0:
									return False
			return True
def 					lowerCamelCase_    (    SCREAMING_SNAKE_CASE   ):
			'''simple docstring'''
			SCREAMING_SNAKE_CASE           =					str(SCREAMING_SNAKE_CASE   )
			SCREAMING_SNAKE_CASE           =					[n]
			for i in range(1					,	len(SCREAMING_SNAKE_CASE   )   ):
						list_nums.append(int(str_num[i:]   )   )
						list_nums.append(int(str_num[:-i]   )   )
			return list_nums
def 					lowerCamelCase_    (    SCREAMING_SNAKE_CASE   ):
			'''simple docstring'''
			if len(str(SCREAMING_SNAKE_CASE   )   ) > 3:
						if not is_prime(int(str(SCREAMING_SNAKE_CASE   )[-3:]   )   ) or not is_prime(int(str(SCREAMING_SNAKE_CASE   )[:3]   )   ):
									return False
			return True
def 					lowerCamelCase_    (    SCREAMING_SNAKE_CASE = 11   ):
			'''simple docstring'''
			SCREAMING_SNAKE_CASE           =					[]
			SCREAMING_SNAKE_CASE           =					13
			while len(SCREAMING_SNAKE_CASE   ) != count:
						if validate(SCREAMING_SNAKE_CASE   ):
									SCREAMING_SNAKE_CASE           =					list_truncated_nums(SCREAMING_SNAKE_CASE   )
									if all(is_prime(SCREAMING_SNAKE_CASE   ) for i in list_nums   ):
												list_truncated_primes.append(SCREAMING_SNAKE_CASE   )
						num += 2
			return list_truncated_primes
def 					lowerCamelCase_    (    ):
			'''simple docstring'''
			return sum(compute_truncated_primes(11   )   )


if __name__ == "__main__":
		print(f'''{sum(compute_truncated_primes(1_1)) = }''')












from __future__ import annotations

import typing
from collections.abc import Iterable

import numpy as np

__A						:							Dict							=  typing.Union[Iterable[float], Iterable[int], np.ndarray]  # noqa: UP007
__A						:							Tuple							=  typing.Union[np.floataa, int, float]  # noqa: UP007
def 					lowerCamelCase_    (    SCREAMING_SNAKE_CASE					,	SCREAMING_SNAKE_CASE   ):
			'''simple docstring'''
			return np.sqrt(np.sum((np.asarray(SCREAMING_SNAKE_CASE   ) - np.asarray(SCREAMING_SNAKE_CASE   )) ** 2   )   )
def 					lowerCamelCase_    (    SCREAMING_SNAKE_CASE					,	SCREAMING_SNAKE_CASE   ):
			'''simple docstring'''
			return sum((va - va) ** 2 for va, va in zip(SCREAMING_SNAKE_CASE					,	SCREAMING_SNAKE_CASE   )   ) ** (1 / 2)


if __name__ == "__main__":
		def 					lowerCamelCase_    (    ):
					'''simple docstring'''
					from timeit import timeit

					print("""Without Numpy"""   )
					print(
					    timeit(
					        """euclidean_distance_no_np([1, 2, 3], [4, 5, 6])"""					,	number=1_00_00					,	globals=globals()					,	)   )
					print("""With Numpy"""   )
					print(
					    timeit(
					        """euclidean_distance([1, 2, 3], [4, 5, 6])"""					,	number=1_00_00					,	globals=globals()					,	)   )




		benchmark()






