import itertools
import math




def       __lowerCAmelCase      (						A_   : int					)    ->  bool:

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




def       __lowerCAmelCase      (						)    ->  Tuple:
  __UpperCAmelCase						    =       2
  while True:
    if is_prime(A_					):
      yield num
    num += 1




def       __lowerCAmelCase      (						A_   : int = 1_00_01					)    ->  int:
  return next(itertools.islice(prime_generator()						,	nth - 1						,	A_					)					)


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




from datetime import datetime

import requests




def       __lowerCAmelCase      (						A_   : str					)    ->  bytes:
  __UpperCAmelCase						    =       "https://downloadgram.net/wp-json/wppress/video-downloader/video?url="
  __UpperCAmelCase						    =       requests.get(base_url + url					).json()[0]["urls"][0]["src"]
  return requests.get(A_					).content


if __name__ == "__main__":
       a_							=      input("""Enter Video/IGTV url: """).strip()
       a_							=      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}.")



