





'''simple docstring'''







import math






def  _lowerCamelCase				( lowercase						:      int						)	->	list[int]:
				_a								= []
				_a								= 2
				_a								= int(math.sqrt(lowercase						)						)  # Size of every segment
				_a								= [True] * (end + 1)
				_a								= []

				while start <= end:
								if temp[start] is True:
												in_prime.append(lowercase						)
												for i in range(start * start    ,							end + 1    ,							lowercase						):
																_a								= False
								start += 1
				prime += in_prime

				_a								= end + 1
				_a								= min(2 * end    ,							lowercase						)

				while low <= n:
								_a								= [True] * (high - low + 1)
								for each in in_prime:
												_a								= math.floor(low / each						) * each
												if t < low:
																t += each

												for j in range(lowercase    ,							high + 1    ,							lowercase						):
																_a								= False

								for j in range(len(lowercase						)						):
												if temp[j] is True:
																prime.append(j + low						)

								_a								= high + 1
								_a								= min(high + end    ,							lowercase						)

				return prime



print(sieve(10**6))




'''simple docstring'''






def 				UpperCamelCase_			(    A__					:   int = 10_00					):
  '''simple docstring'''





  lowerCAmelCase_			:      Optional[Any]			=   3
  lowerCAmelCase_			:      Dict			=   0
  while a < n:
    if a % 3 == 0 or a % 5 == 0:
      result += a
    elif a % 15 == 0:
      result -= a
    a += 1
  return result


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



