





def  SCREAMING_SNAKE_CASE   ( _UpperCAmelCase				)    ->  bool:

    if p < 2:
        raise ValueError('p should not be less than 2!'				)
    elif p == 2:
        return True

    lowerCamelCase__					:   List[str]      				=	4
    lowerCamelCase__					:   int      				=	(1 << p) - 1
    for _ in range(p - 2				):
        lowerCamelCase__					:   Any      				=	((s * s) - 2) % m
    return s == 0


if __name__ == "__main__":
    print(lucas_lehmer_test(7))
    print(lucas_lehmer_test(11))












import socket


def  SCREAMING_SNAKE_CASE   ( )    ->  Any:
    lowerCamelCase__					:   int      				=	socket.socket(socket.AF_INET		,			socket.SOCK_STREAM				)
    lowerCamelCase__					:   Optional[int]      				=	socket.gethostname()
    lowerCamelCase__					:   Optional[int]      				=	1_2312

    sock.connect((host, port)				)
    sock.send(b'Hello server!'				)

    with open('Received_file'		,			'wb'				) as out_file:
        print('File opened'				)
        print('Receiving data...'				)
        while True:
            lowerCamelCase__					:   str      				=	sock.recv(1024				)
            if not data:
                break
            out_file.write(_UpperCAmelCase				)

    print('Successfully received the file'				)
    sock.close()
    print('Connection closed'				)


if __name__ == "__main__":
    main()





