
'''simple docstring'''




from math import isqrt







def       __UpperCAmelCase						(  lowerCamelCase_)							->     bool:
		return all(number % divisor != 0 for divisor in range(2     ,      isqrt(_SCREAMING_SNAKE_CASE) + 1))







def       __UpperCAmelCase						(  lowerCamelCase_ = 10**6)							->     int:
		UpperCamelCase__				:					int					=					0
		UpperCamelCase__				:					Optional[int]					=					1
		UpperCamelCase__				:					str					=					7
		while prime_candidate < max_prime:
				primes_count += is_prime(_SCREAMING_SNAKE_CASE)

				cube_index += 1
				prime_candidate += 6 * cube_index

		return primes_count


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












'''simple docstring'''




from typing import Union

import fire
import torch
from tqdm import tqdm







def       __UpperCAmelCase						(  lowerCamelCase_     ,      lowerCamelCase_ = "cpu"     ,      lowerCamelCase_ = None)							->     None:
		UpperCamelCase__				:					List[Any]					=					torch.load(lowerCamelCase_     ,      map_location=lowerCamelCase_)
		for k, v in tqdm(state_dict.items()):
				if not isinstance(lowerCamelCase_     ,      torch.Tensor):
						raise TypeError('FP16 conversion only works on paths that are saved state dicts, like pytorch_model.bin')
				UpperCamelCase__				:					int					=					v.half()
		if save_path is None:  # overwrite src_path
				UpperCamelCase__				:					List[Any]					=					src_path
		torch.save(lowerCamelCase_     ,      lowerCamelCase_)


if __name__ == "__main__":
		fire.Fire(convert)




