





'''simple docstring'''

import math





def 			lowerCAmelCase_						(    a					:					int				):

							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 			lowerCAmelCase_						(    a					:					int = 10001				):

							try:
														a__            =							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.'				)
							a__            =							[]
							a__            =							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 os
def 							SCREAMING_SNAKE_CASE_	(					)			->						List[str]:
       with open(os.path.dirname(UpperCAmelCase_				) + '''/p022_names.txt'''				) as file:
              SCREAMING_SNAKE_CASE_							:				Any		=str(file.readlines()[0]				)
              SCREAMING_SNAKE_CASE_							:				List[Any]		=names.replace('''"'''			,							''''''				).split(''','''				)

       names.sort()

       SCREAMING_SNAKE_CASE_							:				Optional[int]		=0
       SCREAMING_SNAKE_CASE_							:				Optional[int]		=0

       for i, name in enumerate(UpperCAmelCase_				):
              for letter in name:
                     name_score += ord(UpperCAmelCase_				) - 6_4

              total_score += (i + 1) * name_score
              SCREAMING_SNAKE_CASE_							:				Any		=0
       return total_score


if __name__ == "__main__":
 print(solution())
