

from itertools import compress, repeat
from math import ceil, sqrt


def  __a    (				SCREAMING_SNAKE_CASE ) ->       list[int]:






    '''simple docstring'''

    if num <= 2:
        return []
    if num == 3:
        return [2]

    # Odd sieve for numbers in range [3, num - 1]
    __UpperCAmelCase			   =     bytearray(b'''\x01''' ) * ((num >> 1) - 1)

    for i in range(3    ,				int(sqrt(SCREAMING_SNAKE_CASE ) ) + 1    ,				2 ):
        if sieve[(i >> 1) - 1]:
            __UpperCAmelCase			   =     i**2
            __UpperCAmelCase			   =     repeat(
                0    ,				ceil((num - i_squared) / (i << 1) ) )

    return [2] + list(compress(range(3    ,				SCREAMING_SNAKE_CASE    ,				2 )    ,				SCREAMING_SNAKE_CASE ) )


if __name__ == "__main__":
       import doctest

       doctest.testmod()







import warnings

from ...utils import logging
from .image_processing_convnext import ConvNextImageProcessor


A_						:     int			  =				logging.get_logger(__name__)
class    A_				( _a  ):


    '''simple docstring'''






    def __init__(self       , *lowercase__       , **lowercase__					)       -> None:
        warnings.warn(
            '''The class ConvNextFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
            ''' Please use ConvNextImageProcessor instead.'''       , lowercase__       , )
        super().__init__(*lowercase__       , **lowercase__					)




