





'''simple docstring'''







from __future__ import annotations

def    __UpperCamelCase	(	a    : int     ) ->list[int]:
 snake_case				=			[True] * limit
 snake_case				=			False
 snake_case				=			False
 snake_case				=			True

 for i in range(3					,   int(limit**0.5 + 1     )					,   2     ):
  snake_case				=			i * 2
  while index < limit:
   snake_case				=			False
   snake_case				=			index + i

 snake_case				=			[2]

 for i in range(3					,   __lowerCAmelCase					,   2     ):
  if is_prime[i]:
   primes.append(__lowerCAmelCase     )

 return primes

def    __UpperCamelCase	(	a    : Tuple = 100_0000     ) ->int:
 snake_case				=			prime_sieve(__lowerCAmelCase     )
 snake_case				=			0
 snake_case				=			0

 for i in range(len(__lowerCAmelCase     )     ):
  for j in range(i + length					,   len(__lowerCAmelCase     )     ):
   snake_case				=			sum(primes[i:j]     )
   if sol >= ceiling:
    break

   if sol in primes:
    snake_case				=			j - i
    snake_case				=			sol

 return largest


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








'''simple docstring'''







from ...utils import is_note_seq_available, is_transformers_available, is_torch_available
from ...utils import OptionalDependencyNotAvailable


try:
   if not (is_transformers_available() and is_torch_available()):
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   from ...utils.dummy_torch_and_transformers_objects import *  # noqa F403
else:
   from .notes_encoder import SpectrogramNotesEncoder
   from .continous_encoder import SpectrogramContEncoder
   from .pipeline_spectrogram_diffusion import (
       SpectrogramContEncoder,
       SpectrogramDiffusionPipeline,
       TaFilmDecoder,
   )

try:
   if not (is_transformers_available() and is_torch_available() and is_note_seq_available()):
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   from ...utils.dummy_transformers_and_torch_and_note_seq_objects import *  # noqa F403
else:
   from .midi_utils import MidiProcessor

