



from __future__ import annotations

import math

def        __a			(   __lowerCAmelCase   )     ->     bool:

					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


_lowerCamelCase    :		int		      =    [num for num in range(3, 100_001, 2) if not is_prime(num)]

def        __a			(   __lowerCAmelCase   )     ->     list[int]:
					if not isinstance(__lowerCAmelCase      ,	__lowerCAmelCase   ):
										raise ValueError('n must be an integer'   )
					if n <= 0:
										raise ValueError('n must be >= 0'   )

					SCREAMING_SNAKE_CASE							:     Optional[int]						=				[]
					for num in range(len(__lowerCAmelCase   )   ):
										SCREAMING_SNAKE_CASE							:     Any						=				0
										while 2 * i * i <= odd_composites[num]:
															SCREAMING_SNAKE_CASE							:     int						=				odd_composites[num] - 2 * i * i
															if is_prime(__lowerCAmelCase   ):
																				break
															i += 1
										else:
															list_nums.append(odd_composites[num]   )
															if len(__lowerCAmelCase   ) == n:
																				return list_nums

					return []

def        __a			(   )     ->     int:
					return compute_nums(1   )[0]


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




import gc
import tempfile
import unittest

import numpy as np
import torch

from diffusers import VersatileDiffusionPipeline
from diffusers.utils.testing_utils import load_image, nightly, require_torch_gpu, torch_device


_lowerCamelCase    :		Any		      =    False


class 						lowercase    (							unittest.TestCase):
						'''simple docstring'''


						pass


@nightly
@require_torch_gpu
class 						lowercase    (							unittest.TestCase):
						'''simple docstring'''


						def       lowerCamelCase_				(  self    :				List[Any]	):



											'''simple docstring'''


											super().tearDown()
											gc.collect()
											torch.cuda.empty_cache()







						def       lowerCamelCase_				(  self    :				List[str]	):



											'''simple docstring'''


											SCREAMING_SNAKE_CASE							:     Dict						=				VersatileDiffusionPipeline.from_pretrained('shi-labs/versatile-diffusion'       ,	torch_dtype=torch.floataa	)
											pipe.to(snake_case	)
											pipe.set_progress_bar_config(disable=snake_case	)

											SCREAMING_SNAKE_CASE							:     Dict						=				load_image(
											    'https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/versatile_diffusion/benz.jpg'	)

											SCREAMING_SNAKE_CASE							:     Union[str, Any]						=				torch.manual_seed(0	)
											SCREAMING_SNAKE_CASE							:     Union[str, Any]						=				pipe.dual_guided(
											    prompt='first prompt'       ,	image=snake_case       ,	text_to_image_strength=0.75       ,	generator=snake_case       ,	guidance_scale=7.5       ,	num_inference_steps=2       ,	output_type='numpy'       ,	).images

											with tempfile.TemporaryDirectory() as tmpdirname:
																pipe.save_pretrained(snake_case	)
																SCREAMING_SNAKE_CASE							:     Any						=				VersatileDiffusionPipeline.from_pretrained(snake_case       ,	torch_dtype=torch.floataa	)
											pipe.to(snake_case	)
											pipe.set_progress_bar_config(disable=snake_case	)

											SCREAMING_SNAKE_CASE							:     List[str]						=				generator.manual_seed(0	)
											SCREAMING_SNAKE_CASE							:     Union[str, Any]						=				pipe.dual_guided(
											    prompt='first prompt'       ,	image=snake_case       ,	text_to_image_strength=0.75       ,	generator=snake_case       ,	guidance_scale=7.5       ,	num_inference_steps=2       ,	output_type='numpy'       ,	).images

											assert np.abs(image - new_image	).sum() < 1E-5, "Models don't have the same forward pass"







						def       lowerCamelCase_				(  self    :				Tuple	):



											'''simple docstring'''


											SCREAMING_SNAKE_CASE							:     Dict						=				VersatileDiffusionPipeline.from_pretrained('shi-labs/versatile-diffusion'       ,	torch_dtype=torch.floataa	)
											pipe.to(snake_case	)
											pipe.set_progress_bar_config(disable=snake_case	)

											SCREAMING_SNAKE_CASE							:     Union[str, Any]						=				'cyberpunk 2077'
											SCREAMING_SNAKE_CASE							:     Optional[int]						=				load_image(
											    'https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/versatile_diffusion/benz.jpg'	)
											SCREAMING_SNAKE_CASE							:     List[Any]						=				torch.manual_seed(0	)
											SCREAMING_SNAKE_CASE							:     Any						=				pipe.dual_guided(
											    prompt=snake_case       ,	image=snake_case       ,	text_to_image_strength=0.75       ,	generator=snake_case       ,	guidance_scale=7.5       ,	num_inference_steps=50       ,	output_type='numpy'       ,	).images

											SCREAMING_SNAKE_CASE							:     List[Any]						=				image[0, 253:256, 253:256, -1]

											assert image.shape == (1, 512, 512, 3)
											SCREAMING_SNAKE_CASE							:     Tuple						=				np.array([0.1448, 0.1619, 0.1741, 0.1086, 0.1147, 0.1128, 0.1199, 0.1165, 0.1001]	)

											assert np.abs(image_slice.flatten() - expected_slice	).max() < 1E-1

											SCREAMING_SNAKE_CASE							:     Any						=				'A painting of a squirrel eating a burger '
											SCREAMING_SNAKE_CASE							:     Any						=				torch.manual_seed(0	)
											SCREAMING_SNAKE_CASE							:     Tuple						=				pipe.text_to_image(
											    prompt=snake_case       ,	generator=snake_case       ,	guidance_scale=7.5       ,	num_inference_steps=50       ,	output_type='numpy'	).images

											SCREAMING_SNAKE_CASE							:     Dict						=				image[0, 253:256, 253:256, -1]

											assert image.shape == (1, 512, 512, 3)
											SCREAMING_SNAKE_CASE							:     List[Any]						=				np.array([0.3367, 0.3169, 0.2656, 0.3870, 0.4790, 0.3796, 0.4009, 0.4878, 0.4778]	)

											assert np.abs(image_slice.flatten() - expected_slice	).max() < 1E-1

											SCREAMING_SNAKE_CASE							:     Optional[Any]						=				pipe.image_variation(snake_case       ,	generator=snake_case       ,	output_type='numpy'	).images

											SCREAMING_SNAKE_CASE							:     Optional[int]						=				image[0, 253:256, 253:256, -1]

											assert image.shape == (1, 512, 512, 3)
											SCREAMING_SNAKE_CASE							:     Optional[int]						=				np.array([0.3076, 0.3123, 0.3284, 0.3782, 0.3770, 0.3894, 0.4297, 0.4331, 0.4456]	)

											assert np.abs(image_slice.flatten() - expected_slice	).max() < 1E-1