


'''simple docstring'''

from unittest.mock import Mock, patch

from file_transfer.send_file import send_file





@patch('socket.socket'						)
@patch('builtins.open'						)
def lowerCamelCase     (     lowerCAmelCase							:      List[str]						,						lowerCAmelCase							:      int						):





	"""simple docstring"""







	__magic_name__			:       int	      =	Mock()
	__magic_name__			:       Tuple	      =	conn, Mock()
	__magic_name__			:       str	      =	iter([1, None]						)
	__magic_name__			:       Dict	      =	lambda lowerCAmelCase						: next(__UpperCAmelCase						)

	# ===== invoke =====
	send_file(filename='mytext.txt'						,						testing=__UpperCAmelCase						)

	# ===== ensurance =====
	sock.assert_called_once()
	sock.return_value.bind.assert_called_once()
	sock.return_value.listen.assert_called_once()
	sock.return_value.accept.assert_called_once()
	conn.recv.assert_called_once()

	file.return_value.__enter__.assert_called_once()
	file.return_value.__enter__.return_value.read.assert_called()

	conn.send.assert_called_once()
	conn.close.assert_called_once()
	sock.return_value.shutdown.assert_called_once()
	sock.return_value.close.assert_called_once()




import math
from collections.abc import Iterator
from itertools import takewhile






def     __a					(		__UpperCAmelCase       ):

 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(__UpperCAmelCase       ) + 1       )							,  6       ):
  if number % i == 0 or number % (i + 2) == 0:
   return False
 return True






def     __a					(		):
 a__												= 2
 while True:
  if is_prime(__UpperCAmelCase       ):
   yield num
  num += 1






def     __a					(		__UpperCAmelCase = 200_0000       ):
 return sum(takewhile(lambda __UpperCAmelCase       : x < n							,  prime_generator()       )       )


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





