




"""simple docstring"""




import math







def      __UpperCAmelCase     ( __UpperCamelCase	):

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







def      __UpperCAmelCase     ( __UpperCamelCase = 1_00_01	):

			try:
						__lowercase			:  Optional[int]								=       int(__UpperCamelCase	)
			except (TypeError, ValueError):
						raise TypeError('''Parameter nth must be int or castable to int.'''	) from None
			if nth <= 0:
						raise ValueError('''Parameter nth must be greater than or equal to one.'''	)
			__lowercase			:  list[int]								=       []
			__lowercase			:  Optional[int]								=       2
			while len(__UpperCamelCase	) < nth:
						if is_prime(__UpperCamelCase	):
									primes.append(__UpperCamelCase	)
									num += 1
						else:
									num += 1
			return primes[len(__UpperCamelCase	) - 1]


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








import requests

_lowerCamelCase    :		int		      =    """https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey="""

def        __a			(   __lowerCAmelCase   )     ->     None:
					# fetching a list of articles in json format
					SCREAMING_SNAKE_CASE							:     List[str]						=				requests.get(_NEWS_API + bbc_news_api_key   ).json()
					# each article in the list is a dict
					for i, article in enumerate(bbc_news_page['articles']      ,	1   ):
										print(F'''{i}.) {article['title']}'''   )


if __name__ == "__main__":
			fetch_bbc_news(bbc_news_api_key="""<Your BBC News API key goes here>""")