



def    __lowerCamelCase   (  lowerCamelCase__ = 50_000_000		):

				"""simple docstring"""


				lowercase__	:       Dict						=	set()
				lowercase__	:       Optional[int]						=	int((limit - 24) ** (1 / 2)		)

				lowercase__	:       Dict						=	set(range(3	,					prime_square_limit + 1	,					2		)		)
				primes.add(2		)
				for p in range(3	,					prime_square_limit + 1	,					2		):
								if p not in primes:
												continue
								primes.difference_update(set(range(p * p	,					prime_square_limit + 1	,					SCREAMING_SNAKE_CASE__		)		)		)

				for primea in primes:
								lowercase__	:       List[Any]						=	primea * primea
								for primea in primes:
												lowercase__	:       Union[str, Any]						=	primea * primea * primea
												if square + cube >= limit - 16:
																break
												for primea in primes:
																lowercase__	:       Optional[Any]						=	primea * primea * primea * primea
																lowercase__	:       int						=	square + cube + tetr
																if total >= limit:
																				break
																ret.add(SCREAMING_SNAKE_CASE__		)

				return len(SCREAMING_SNAKE_CASE__		)


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








'''simple docstring'''


import tempfile
import unittest

from make_student import create_student_by_copying_alternating_layers

from transformers import AutoConfig
from transformers.file_utils import cached_property
from transformers.testing_utils import require_torch


UpperCAmelCase_						:  List[Any]				  =						'sshleifer/bart-tiny-random'
UpperCAmelCase_						:  Tuple				  =						'patrickvonplaten/t5-tiny-random'





@require_torch
class        lowercase__    (		unittest.TestCase   ):





							'''simple docstring'''


							@cached_property
							def UpperCAmelCase_      (       self    ):
											return AutoConfig.from_pretrained(__snake_case    )






							def UpperCAmelCase_      (       self    ):
											_SCREAMING_SNAKE_CASE						,			*_SCREAMING_SNAKE_CASE					:			int							= create_student_by_copying_alternating_layers(__snake_case       ,   tempfile.mkdtemp()       ,   e=1       ,   d=1    )
											self.assertEqual(student.config.num_hidden_layers       ,   1    )






							def UpperCAmelCase_      (       self    ):
											_SCREAMING_SNAKE_CASE						,			*_SCREAMING_SNAKE_CASE					:			int							= create_student_by_copying_alternating_layers(__snake_case       ,   tempfile.mkdtemp()       ,   e=1       ,   d=__snake_case    )






							def UpperCAmelCase_      (       self    ):
											_SCREAMING_SNAKE_CASE						,			*_SCREAMING_SNAKE_CASE					:			str							= create_student_by_copying_alternating_layers(__snake_case       ,   tempfile.mkdtemp()       ,   e=1       ,   d=__snake_case    )
											self.assertEqual(student.config.encoder_layers       ,   1    )
											self.assertEqual(student.config.decoder_layers       ,   self.teacher_config.encoder_layers    )






							def UpperCAmelCase_      (       self    ):
											_SCREAMING_SNAKE_CASE						,			*_SCREAMING_SNAKE_CASE					:			Union[str, Any]							= create_student_by_copying_alternating_layers(__snake_case       ,   tempfile.mkdtemp()       ,   e=1       ,   d=1    )
											self.assertEqual(student.config.encoder_layers       ,   1    )
											self.assertEqual(student.config.decoder_layers       ,   1    )






							def UpperCAmelCase_      (       self    ):
											with self.assertRaises(__snake_case    ):
															create_student_by_copying_alternating_layers(__snake_case       ,   tempfile.mkdtemp()       ,   e=__snake_case       ,   d=__snake_case    )




