


'''simple docstring'''






from __future__ import annotations

import math






def 		_A (lowerCAmelCase__     :int						)      ->     bool:




     '''simple docstring'''



     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






def 		_A (lowerCAmelCase__     :int						)      ->     list[int]:




     '''simple docstring'''



     _a						=							str(_lowerCamelCase						)
     _a						=							[n]
     for i in range(1 ,  len(_lowerCamelCase						)						):
          list_nums.append(int(str_num[i:]						)						)
          list_nums.append(int(str_num[:-i]						)						)
     return list_nums






def 		_A (lowerCAmelCase__     :int						)      ->     bool:




     '''simple docstring'''



     if len(str(_lowerCamelCase						)						) > 3:
          if not is_prime(int(str(_lowerCamelCase						)[-3:]						)						) or not is_prime(int(str(_lowerCamelCase						)[:3]						)						):
               return False
     return True






def 		_A (lowerCAmelCase__     :int = 11						)      ->     list[int]:




     '''simple docstring'''



     _a						=							[]
     _a						=							13
     while len(_lowerCamelCase						) != count:
          if validate(_lowerCamelCase						):
               _a						=							list_truncated_nums(_lowerCamelCase						)
               if all(is_prime(_lowerCamelCase						) for i in list_nums						):
                    list_truncated_primes.append(_lowerCamelCase						)
          num += 2
     return list_truncated_primes






def 		_A ()      ->     int:




     '''simple docstring'''



     return sum(compute_truncated_primes(11						)						)


if __name__ == "__main__":
 print(f'''{sum(compute_truncated_primes(1_1)) = }''')









"""simple docstring"""





import argparse
import json
import subprocess







def      lowerCamelCase__       (							_lowerCamelCase       :		Tuple		,				_lowerCamelCase       :		str )      ->				List[Any]:
  lowerCamelCase_         =						[]

  lowerCamelCase_         =						(
      F'''curl -H "Accept: application/vnd.github+json" -H "Authorization: Bearer {token}"'''
      ' https://api.github.com/repos/huggingface/transformers/actions/runners'
  )
  lowerCamelCase_         =						subprocess.run(_lowerCamelCase		,				shell=_lowerCamelCase		,				stdout=subprocess.PIPE )
  lowerCamelCase_         =						output.stdout.decode('utf-8' )
  lowerCamelCase_         =						json.loads(_lowerCamelCase )

  lowerCamelCase_         =						status['runners']
  for runner in runners:
    if runner["name"] in target_runners:
      if runner["status"] == "offline":
        offline_runners.append(_lowerCamelCase )

    # save the result so we can report them on Slack
  with open('offline_runners.txt'		,				'w' ) as fp:
    fp.write(json.dumps(_lowerCamelCase ) )

  if len(_lowerCamelCase ) > 0:
    lowerCamelCase_         =						'\n'.join([x['name'] for x in offline_runners] )
    raise ValueError(F'''The following runners are offline:\n{failed}''' )


if __name__ == "__main__":







  def      lowerCamelCase__       (							_lowerCamelCase       :		Dict )      ->				Tuple:
    return values.split(',' )

  _SCREAMING_SNAKE_CASE					:				Union[str, Any]					    =						argparse.ArgumentParser()
  # Required parameters
  parser.add_argument(
      '''--target_runners''',
      default=None,
      type=list_str,
      required=True,
      help='''Comma-separated list of runners to check status.''',
  )

  parser.add_argument(
      '''--token''', default=None, type=str, required=True, help='''A token that has actions:read permission.'''
  )
  _SCREAMING_SNAKE_CASE					:				Any					    =						parser.parse_args()






  get_runner_status(args.target_runners, args.token)




