
"""simple docstring"""


from __future__ import annotations

import math






def    _snake_case					(		snake_case__ :  List[str]  ):

	if num <= 0:
		A     = F'{num}: Invalid input, please enter a positive integer.'
		raise ValueError(__lowerCAmelCase  )

	A     = [True] * (num + 1)
	A     = []
	A     = 2
	A     = int(math.sqrt(__lowerCAmelCase  )  )

	while start <= end:
		# If start is a prime
		if sieve[start] is True:
			prime.append(__lowerCAmelCase  )

			# Set multiples of start be False
			for i in range(start * start						,   num + 1						,   __lowerCAmelCase  ):
				if sieve[i] is True:
					A     = False

		start += 1

	for j in range(end + 1						,   num + 1  ):
		if sieve[j] is True:
			prime.append(__lowerCAmelCase  )

	return prime


if __name__ == "__main__":
		print(prime_sieve(int(input('''Enter a positive integer: ''').strip())))




from datetime import datetime

import requests

def        __a			(   __lowerCAmelCase   )     ->     bytes:
					SCREAMING_SNAKE_CASE							:     int						=				'https://downloadgram.net/wp-json/wppress/video-downloader/video?url='
					SCREAMING_SNAKE_CASE							:     Any						=				requests.get(base_url + url   ).json()[0]['urls'][0]['src']
					return requests.get(__lowerCAmelCase   ).content


if __name__ == "__main__":
			_lowerCamelCase    :		List[Any]		      =    input("""Enter Video/IGTV url: """).strip()
			_lowerCamelCase    :		int		      =    f"""{datetime.now():%Y-%m-%d_%H:%M:%S}.mp4"""
			with open(file_name, """wb""") as fp:
						fp.write(download_video(url))
			print(f"""Done. Video saved to disk as {file_name}.""")