





'''simple docstring'''


import math




def       A							(      _UpperCAmelCase   :				int					)  ->				bool:


  '''simple docstring'''




  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       A							(      _UpperCAmelCase   :				int = 2_0_0_0_0_0_0					)  ->				int:


  '''simple docstring'''




  return sum(num for num in range(3						,UpperCamelCase_						,2					) if is_prime(UpperCamelCase_					)					) + 2 if n > 2 else 0


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








"""simple docstring"""





import numpy as np
from cva import COLOR_BGR2GRAY, cvtColor, imread, imshow, waitKey

from digital_image_processing.filters.convolve import img_convolve




def     _A    (    UpperCamelCase_	:			int)      ->		str:
   '''simple docstring'''


   __lowercase								=		np.array([[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]])
   __lowercase								=		np.array([[1, 2, 1], [0, 0, 0], [-1, -2, -1]])

   __lowercase								=		np.abs(img_convolve(UpperCamelCase_,     UpperCamelCase_))
   __lowercase								=		np.abs(img_convolve(UpperCamelCase_,     UpperCamelCase_))
   # modify the pix within [0, 255]
   __lowercase								=		dst_x * 255 / np.max(UpperCamelCase_)
   __lowercase								=		dst_y * 255 / np.max(UpperCamelCase_)

   __lowercase								=		np.sqrt((np.square(UpperCamelCase_)) + (np.square(UpperCamelCase_)))
   __lowercase								=		dst_xy * 255 / np.max(UpperCamelCase_)
   __lowercase								=		dst_xy.astype(np.uinta)

   __lowercase								=		np.arctana(UpperCamelCase_,     UpperCamelCase_)
   return dst, theta


if __name__ == "__main__":
   # read original image
   _a					 =				imread('../image_data/lena.jpg')
   # turn image in gray scale value
   _a					 =				cvtColor(img, COLOR_BGR2GRAY)

   _a ,		_a					 =				sobel_filter(gray)

   # show result images
   imshow('sobel filter', sobel_grad)
   imshow('sobel theta', sobel_theta)
   waitKey(0)




