


'''simple docstring'''






import math
from collections.abc import Iterator
from itertools import takewhile







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







def     UpperCamelCase_      (   ):
  lowerCAmelCase_      :				Any      =       2
  while True:
    if is_prime(lowerCAmelCase__ ):
      yield num
    num += 1







def     UpperCamelCase_      (   A__ :       int = 2_00_00_00 ):
  return sum(takewhile(lambda A__ : x < n							,   prime_generator() ) )


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







'''simple docstring'''






import requests







def     UpperCamelCase_      (   A__ :       str							,   A__ :       str ):
  '''simple docstring'''





  lowerCAmelCase_      :				Optional[Any]      =       {"""Content-Type""": """application/json"""}
  lowerCAmelCase_      :				Union[str, Any]      =       requests.post(A__							,   json={"""text""": message_body}							,   headers=A__ )
  if response.status_code != 2_00:
    lowerCAmelCase_      :				Dict      =       (
        """Request to slack returned an error """
        f'{response.status_code}, the response is:\n{response.text}'
    )
    raise ValueError(A__ )


if __name__ == "__main__":
  # Set the slack url to the one provided by Slack when you create the webhook at
  # https://my.slack.com/services/new/incoming-webhook/
  send_slack_message("<YOUR MESSAGE BODY>", "<SLACK CHANNEL URL>")



