def  __UpperCamelCase    (						A = 50000000							):
     UpperCamelCase__										=      set()
     UpperCamelCase__										=      int((limit - 24) ** (1 / 2)							)

     UpperCamelCase__										=      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 ,							A							)							)							)

     for primea in primes:
          UpperCamelCase__										=      primea * primea
          for primea in primes:
               UpperCamelCase__										=      primea * primea * primea
               if square + cube >= limit - 16:
                    break
               for primea in primes:
                    UpperCamelCase__										=      primea * primea * primea * primea
                    UpperCamelCase__										=      square + cube + tetr
                    if total >= limit:
                         break
                    ret.add(A							)

     return len(A							)


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




from datetime import datetime

import matplotlib.pyplot as plt
import torch







def  __UpperCamelCase    (						A							):
     for param in module.parameters():
          UpperCamelCase__										=      False







def  __UpperCamelCase    (						):
     UpperCamelCase__										=      '''cuda''' if torch.cuda.is_available() else '''cpu'''
     if torch.backends.mps.is_available() and torch.backends.mps.is_built():
          UpperCamelCase__										=      '''mps'''
     if device == "mps":
          print(
              '''WARNING: MPS currently doesn\'t seem to work, and messes up backpropagation without any visible torch'''
              ''' errors. I recommend using CUDA on a colab notebook or CPU instead if you\'re facing inexplicable issues'''
              ''' with generations.'''							)
     return device







def  __UpperCamelCase    (						A							):
     UpperCamelCase__										=      plt.imshow(A							)
     fig.axes.get_xaxis().set_visible(A							)
     fig.axes.get_yaxis().set_visible(A							)
     plt.show()







def  __UpperCamelCase    (						):
     UpperCamelCase__										=      datetime.now()
     UpperCamelCase__										=      current_time.strftime('''%H:%M:%S'''							)
     return timestamp



