






'''simple docstring'''




from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_torch_available,
    is_vision_available,
)


lowerCamelCase_				   =   {'''configuration_vit''': ['''VIT_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''ViTConfig''', '''ViTOnnxConfig''']}

try:
    if not is_vision_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    lowerCamelCase_				   =   ['''ViTFeatureExtractor''']
    lowerCamelCase_				   =   ['''ViTImageProcessor''']

try:
    if not is_torch_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    lowerCamelCase_				   =   [
        '''VIT_PRETRAINED_MODEL_ARCHIVE_LIST''',
        '''ViTForImageClassification''',
        '''ViTForMaskedImageModeling''',
        '''ViTModel''',
        '''ViTPreTrainedModel''',
    ]

try:
    if not is_tf_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    lowerCamelCase_				   =   [
        '''TFViTForImageClassification''',
        '''TFViTModel''',
        '''TFViTPreTrainedModel''',
    ]

try:
    if not is_flax_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    lowerCamelCase_				   =   [
        '''FlaxViTForImageClassification''',
        '''FlaxViTModel''',
        '''FlaxViTPreTrainedModel''',
    ]

if TYPE_CHECKING:
    from .configuration_vit import VIT_PRETRAINED_CONFIG_ARCHIVE_MAP, ViTConfig, ViTOnnxConfig

    try:
        if not is_vision_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .feature_extraction_vit import ViTFeatureExtractor
        from .image_processing_vit import ViTImageProcessor

    try:
        if not is_torch_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .modeling_vit import (
            VIT_PRETRAINED_MODEL_ARCHIVE_LIST,
            ViTForImageClassification,
            ViTForMaskedImageModeling,
            ViTModel,
            ViTPreTrainedModel,
        )

    try:
        if not is_tf_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .modeling_tf_vit import TFViTForImageClassification, TFViTModel, TFViTPreTrainedModel

    try:
        if not is_flax_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .modeling_flax_vit import FlaxViTForImageClassification, FlaxViTModel, FlaxViTPreTrainedModel


else:
    import sys

    lowerCamelCase_				   =   _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)








from math import isqrt, loga







def 						lowerCamelCase__      ( __A    :int		):


       """simple docstring"""




       __snake_case       	=							[True] * max_number
       for i in range(2	,isqrt(max_number - 1		) + 1		):
              if is_prime[i]:
                     for j in range(i**2	,__A	,__A		):
                            __snake_case       	=							False

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







def 						lowerCamelCase__      ( __A    :int = 8_0_0_8_0_0	,__A    :int = 8_0_0_8_0_0		):


       """simple docstring"""




       __snake_case       	=							degree * loga(__A		)
       __snake_case       	=							int(__A		)
       __snake_case       	=							calculate_prime_numbers(__A		)

       __snake_case       	=							0
       __snake_case       	=							0
       __snake_case       	=							len(__A		) - 1
       while left < right:
              while (
                  prime_numbers[right] * loga(prime_numbers[left]		)
                  + prime_numbers[left] * loga(prime_numbers[right]		)
                  > upper_bound
              ):
                     right -= 1
              hybrid_integers_count += right - left
              left += 1

       return hybrid_integers_count


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

