



'''simple docstring'''





from __future__ import annotations

import json

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

lowercase_	 =						{"UserAgent": UserAgent().random}




def lowerCAmelCase						(__A):



					"""simple docstring"""



					_a											=						script.contents[0]
					_a											=						json.loads(data[data.find('''{"config"''') : -1])
					return info["entry_data"]["ProfilePage"][0]["graphql"]["user"]






class __A    :



	'''simple docstring'''







	def __init__(self				,     A )					->  int:


						"""simple docstring"""



						_a											=						f'''https://www.instagram.com/{username}/'''
						_a											=						self.get_json()



	def       a__						(self )					->  dict:


						"""simple docstring"""



						_a											=						requests.get(self.url				,     headers=A ).text
						_a											=						BeautifulSoup(A				,     '''html.parser''' ).find_all('''script''' )
						try:
											return extract_user_profile(scripts[4] )
						except (json.decoder.JSONDecodeError, KeyError):
											return extract_user_profile(scripts[3] )



	def __repr__(self )					->  str:


						"""simple docstring"""



						return f'''{self.__class__.__name__}(\'{self.username}\')'''



	def __str__(self )					->  str:


						"""simple docstring"""



						return f'''{self.fullname} ({self.username}) is {self.biography}'''



	@property
	def       a__						(self )					->  str:


						"""simple docstring"""



						return self.user_data["username"]



	@property
	def       a__						(self )					->  str:


						"""simple docstring"""



						return self.user_data["full_name"]



	@property
	def       a__						(self )					->  str:


						"""simple docstring"""



						return self.user_data["biography"]



	@property
	def       a__						(self )					->  str:


						"""simple docstring"""



						return self.user_data["business_email"]



	@property
	def       a__						(self )					->  str:


						"""simple docstring"""



						return self.user_data["external_url"]



	@property
	def       a__						(self )					->  int:


						"""simple docstring"""



						return self.user_data["edge_followed_by"]["count"]



	@property
	def       a__						(self )					->  int:


						"""simple docstring"""



						return self.user_data["edge_follow"]["count"]



	@property
	def       a__						(self )					->  int:


						"""simple docstring"""



						return self.user_data["edge_owner_to_timeline_media"]["count"]



	@property
	def       a__						(self )					->  str:


						"""simple docstring"""



						return self.user_data["profile_pic_url_hd"]



	@property
	def       a__						(self )					->  bool:


						"""simple docstring"""



						return self.user_data["is_verified"]



	@property
	def       a__						(self )					->  bool:


						"""simple docstring"""



						return self.user_data["is_private"]





def lowerCAmelCase						(__A = "github"):



					"""simple docstring"""



					import os

					if os.environ.get('''CI'''):
										return  # test failing on GitHub Actions
					_a											=						InstagramUser(__A)
					assert instagram_user.user_data
					assert isinstance(instagram_user.user_data						,			__A)
					assert instagram_user.username == username
					if username != "github":
										return
					assert instagram_user.fullname == "GitHub"
					assert instagram_user.biography == "Built for developers."
					assert instagram_user.number_of_posts > 150
					assert instagram_user.number_of_followers > 120_000
					assert instagram_user.number_of_followings > 15
					assert instagram_user.email == "support@github.com"
					assert instagram_user.website == "https://github.com/readme"
					assert instagram_user.profile_picture_url.startswith('''https://instagram.''')
					assert instagram_user.is_verified is True
					assert instagram_user.is_private is False


if __name__ == "__main__":
		import doctest

		doctest.testmod()
		lowercase_	 =						InstagramUser("github")
		print(instagram_user)
		print(F"""{instagram_user.number_of_posts = }""")
		print(F"""{instagram_user.number_of_followers = }""")
		print(F"""{instagram_user.number_of_followings = }""")
		print(F"""{instagram_user.email = }""")
		print(F"""{instagram_user.website = }""")
		print(F"""{instagram_user.profile_picture_url = }""")
		print(F"""{instagram_user.is_verified = }""")
		print(F"""{instagram_user.is_private = }""")








'''simple docstring'''





from __future__ import annotations

lowercase_	 =						[True] * 1_000_001
lowercase_	 =						2
while i * i <= 1_000_000:
  if seive[i]:
    for j in range(i * i, 1_000_001, i):
      lowercase_	 =						False
  i += 1




def lowerCAmelCase						(__A):



     """simple docstring"""



     return seive[n]




def lowerCAmelCase						(__A):



     """simple docstring"""



     return any(digit in '''02468''' for digit in str(__A))




def lowerCAmelCase						(__A = 1_000_000):



     """simple docstring"""



     _a											=						[2]  # result already includes the number 2.
     for num in range(3						,			limit + 1						,			2):
          if is_prime(__A) and not contains_an_even_digit(__A):
               _a											=						str(__A)
               _a											=						[int(str_num[j:] + str_num[:j]) for j in range(len(__A))]
               if all(is_prime(__A) for i in list_nums):
                    result.append(__A)
     return result




def lowerCAmelCase						():



     """simple docstring"""



     return len(find_circular_primes())


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



