




"""simple docstring"""

from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
		_lowerCamelCase  :			List[Any]        =       input('Enter image url: ').strip()
		print(f'Downloading image from {url} ...')
		_lowerCamelCase  :			Optional[Any]        =       BeautifulSoup(requests.get(url).content, 'html.parser')
		# The image URL is in the content field of the first meta tag with property og:image
		_lowerCamelCase  :			List[str]        =       soup.find('meta', {'property': 'og:image'})['content']
		_lowerCamelCase  :			List[str]        =       requests.get(image_url).content
		_lowerCamelCase  :			Dict        =       f'{datetime.now():%Y-%m-%d_%H:%M:%S}.jpg'
		with open(file_name, 'wb') as fp:
				fp.write(image_data)
		print(f'Done. Image saved to disk as {file_name}.')











"""simple docstring"""

import random

from .binary_exp_mod import bin_exp_mod

def 		lowercase_      (		_UpperCAmelCase  ,      _UpperCAmelCase=1000	):




	"""simple docstring"""






	if n < 2:
		return False

	if n % 2 == 0:
		return n == 2

	# this means n is odd
	A_  :				List[Any]	   =		n - 1
	A_  :				Dict	   =		0
	while d % 2 == 0:
		d /= 2
		exp += 1

	# n - 1=d*(2**exp)
	A_  :				Optional[Any]	   =		0
	while count < prec:
		A_  :				Optional[int]	   =		random.randint(2  ,      n - 1	)
		A_  :				Any	   =		bin_exp_mod(_UpperCAmelCase  ,      _UpperCAmelCase  ,      _UpperCAmelCase	)
		if b != 1:
			A_  :				Dict	   =		True
			for _ in range(_UpperCAmelCase	):
				if b == n - 1:
					A_  :				Optional[int]	   =		False
					break
				A_  :				Any	   =		b * b
				b %= n
			if flag:
				return False
			count += 1
	return True


if __name__ == "__main__":
		_lowerCamelCase  :			List[str]        =       abs(int(input('Enter bound : ').strip()))
		print('Here\'s the list of primes:')
		print(', '.join(str(i) for i in range(n + 1) if is_prime_big(i)))





