





import math





def lowerCAmelCase__(__snake_case							)       ->   bool:







	'''simple docstring'''







	assert isinstance(__snake_case ,__snake_case							) and (
	    number >= 0
	), "'number' must been an int and positive"

	if 1 < number < 4:
		# 2 and 3 are primes
		return True
	elif number < 2 or not number % 2:
		# Negatives, 0, 1 and all even numbers are not primes
		return False

	lowerCamelCase__              =	range(3 ,int(math.sqrt(__snake_case							) + 1							) ,2							)
	return not any(not number % i for i in odd_numbers							)





def lowerCAmelCase__(__snake_case ,__snake_case=1 ,**__snake_case							)       ->   Any:







	'''simple docstring'''







	lowerCamelCase__              =	factor * value
	lowerCamelCase__              =	value

	while not is_prime(__snake_case							):
		value += 1 if not ("desc" in kwargs and kwargs["desc"] is True) else -1

	if value == first_value_val:
		return next_prime(value + 1 ,**__snake_case							)
	return value










import warnings

from ...utils import logging
from .image_processing_owlvit import OwlViTImageProcessor


_a						=   logging.get_logger(__name__)






class       __A					(					lowerCAmelCase				):

			'''simple docstring'''







			def __init__(					self ,						*__lowerCAmelCase ,						**__lowerCAmelCase							):



				'''simple docstring'''







				warnings.warn(
				    '''The class OwlViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
				    ''' use OwlViTImageProcessor instead.''' ,						__lowerCAmelCase ,						)
				super().__init__(*__lowerCAmelCase ,						**__lowerCAmelCase							)



