






"""simple docstring"""





from math import isqrt







def      lowerCamelCase__       (							_lowerCamelCase       :		int )      ->				list[int]:
  lowerCamelCase_         =						[True] * max_number
  for i in range(2		,				isqrt(max_number - 1 ) + 1 ):
    if is_prime[i]:
      for j in range(i**2		,				_UpperCamelCase		,				_UpperCamelCase ):
        lowerCamelCase_         =						False

  return [i for i in range(2		,				_UpperCamelCase ) if is_prime[i]]







def      lowerCamelCase__       (							_lowerCamelCase       :		int = 10**8 )      ->				int:
  lowerCamelCase_         =						calculate_prime_numbers(max_number // 2 )

  lowerCamelCase_         =						0
  lowerCamelCase_         =						0
  lowerCamelCase_         =						len(_UpperCamelCase ) - 1
  while left <= right:
    while prime_numbers[left] * prime_numbers[right] >= max_number:
      right -= 1
    semiprimes_count += right - left + 1
    left += 1

  return semiprimes_count


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








"""simple docstring"""






def      lowerCamelCase       (     _UpperCamelCase		:      float       ,			_UpperCamelCase		:      float       ,			_UpperCamelCase		:      int							)		->       float:

							'''simple docstring'''



							if principal <= 0:
														raise Exception("""Principal borrowed must be > 0"""							)
							if rate_per_annum < 0:
														raise Exception("""Rate of interest must be >= 0"""							)
							if years_to_repay <= 0 or not isinstance(_UpperCamelCase       ,			_UpperCamelCase							):
														raise Exception("""Years to repay must be an integer > 0"""							)

							# Yearly rate is divided by 12 to get monthly rate
							__UpperCAmelCase   :						List[Any]      							=					rate_per_annum / 1_2

							# Years to repay is multiplied by 12 to get number of payments as payment is monthly
							__UpperCAmelCase   :						Optional[int]      							=					years_to_repay * 1_2

							return (
							    principal
							    * rate_per_month
							    * (1 + rate_per_month) ** number_of_payments
							    / ((1 + rate_per_month) ** number_of_payments - 1)
							)


if __name__ == "__main__":
							import doctest

							doctest.testmod()
