



"""simple docstring"""
from __future__ import annotations

import math



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


SCREAMING_SNAKE_CASE_      						=			[num for num in range(3, 10_00_01, 2) if not is_prime(num)]



def 							lowerCAmelCase_    (				SCREAMING_SNAKE_CASE__						)      ->   list[int]:





		if not isinstance(snake_case__,			snake_case__						):
				raise ValueError("n must be an integer"						)
		if n <= 0:
				raise ValueError("n must be >= 0"						)

		a_  :   Dict			    =  []
		for num in range(len(snake_case__						)						):
				a_  :   Any			    =  0
				while 2 * i * i <= odd_composites[num]:
						a_  :   Any			    =  odd_composites[num] - 2 * i * i
						if is_prime(snake_case__						):
								break
						i += 1
				else:
						list_nums.append(odd_composites[num]						)
						if len(snake_case__						) == n:
								return list_nums

		return []



def 							lowerCAmelCase_    (				)      ->   int:
		return compute_nums(1						)[0]


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




from __future__ import annotations

import json

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

_lowerCAmelCase	:   List[str]    =   {"UserAgent": UserAgent().random}







def     UpperCAmelCase_		(					snake_case__					)	->     dict:



				"""simple docstring"""





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


class 	__snake_case   :
		def __init__(							self    ,a_						):







						"""simple docstring"""
						lowerCAmelCase__		  =  f'https://www.instagram.com/{username}/'
						lowerCAmelCase__		  =  self.get_json()
		def 						SCREAMING_SNAKE_CASE_					(							self						):







						"""simple docstring"""
						lowerCAmelCase__		  =  requests.get(self.url    ,headers=a_						).text
						lowerCAmelCase__		  =  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						):







						"""simple docstring"""
						return f'{self.__class__.__name__}(\'{self.username}\')'
		def __str__(							self						):







						"""simple docstring"""
						return f'{self.fullname} ({self.username}) is {self.biography}'
		@property
		def 						SCREAMING_SNAKE_CASE_					(							self						):







						"""simple docstring"""
						return self.user_data["username"]
		@property
		def 						SCREAMING_SNAKE_CASE_					(							self						):







						"""simple docstring"""
						return self.user_data["full_name"]
		@property
		def 						SCREAMING_SNAKE_CASE_					(							self						):







						"""simple docstring"""
						return self.user_data["biography"]
		@property
		def 						SCREAMING_SNAKE_CASE_					(							self						):







						"""simple docstring"""
						return self.user_data["business_email"]
		@property
		def 						SCREAMING_SNAKE_CASE_					(							self						):







						"""simple docstring"""
						return self.user_data["external_url"]
		@property
		def 						SCREAMING_SNAKE_CASE_					(							self						):







						"""simple docstring"""
						return self.user_data["edge_followed_by"]["count"]
		@property
		def 						SCREAMING_SNAKE_CASE_					(							self						):







						"""simple docstring"""
						return self.user_data["edge_follow"]["count"]
		@property
		def 						SCREAMING_SNAKE_CASE_					(							self						):







						"""simple docstring"""
						return self.user_data["edge_owner_to_timeline_media"]["count"]
		@property
		def 						SCREAMING_SNAKE_CASE_					(							self						):







						"""simple docstring"""
						return self.user_data["profile_pic_url_hd"]
		@property
		def 						SCREAMING_SNAKE_CASE_					(							self						):







						"""simple docstring"""
						return self.user_data["is_verified"]



		@property
		def 						SCREAMING_SNAKE_CASE_					(							self						):







						"""simple docstring"""
						return self.user_data["is_private"]







def     UpperCAmelCase_		(					snake_case__ = "github"					)	->     None:



				"""simple docstring"""





				import os

				if os.environ.get('CI'					):
								return  # test failing on GitHub Actions
				lowerCAmelCase__		  =  InstagramUser(snake_case__					)
				assert instagram_user.user_data
				assert isinstance(instagram_user.user_data    ,			snake_case__					)
				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 > 120000
				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()
	_lowerCAmelCase	:   Optional[int]    =   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 = }""")
