




"""simple docstring"""


import json
import sys


def       UpperCAmelCase__ (snake_case__							:      List[Any]	,     snake_case__							:      Any					):
  """simple docstring"""

  with open(__snake_case	,     encoding="""utf-8"""					) as f:
    _snake_case							:	Tuple			=						json.load(__snake_case					)

  _snake_case							:	Any			=						["""<details>""", """<summary>Show updated benchmarks!</summary>""", """ """]

  for benchmark_name in sorted(__snake_case					):
    _snake_case							:	int			=						results[benchmark_name]

    _snake_case							:	int			=						benchmark_name.split("""/"""					)[-1]
    output_md.append(F"### Benchmark: {benchmark_file_name}"					)

    _snake_case							:	Optional[Any]			=						"""| metric |"""
    _snake_case							:	str			=						"""|--------|"""
    _snake_case							:	int			=						"""| new / old (diff) |"""
    for metric_name in sorted(__snake_case					):
      _snake_case							:	Dict			=						benchmark_res[metric_name]
      _snake_case							:	Tuple			=						metric_vals["""new"""]
      _snake_case							:	Optional[int]			=						metric_vals.get("""old"""	,     __snake_case					)
      _snake_case							:	Optional[int]			=						metric_vals.get("""diff"""	,     __snake_case					)

      _snake_case							:	List[str]			=						F" {new_val:f}" if isinstance(__snake_case	,     (int, float)					) else """None"""

      if old_val is not None:
        val_str += F" / {old_val:f}" if isinstance(__snake_case	,     (int, float)					) else "None"
      if dif_val is not None:
        val_str += F" ({dif_val:f})" if isinstance(__snake_case	,     (int, float)					) else "None"

      title += " " + metric_name + " |"
      lines += "---|"
      value += val_str + " |"

    output_md += [title, lines, value, " "]

  output_md.append("""</details>"""					)

  with open(__snake_case	,     """w"""	,     encoding="""utf-8"""					) as f:
    f.writelines("""\n""".join(__snake_case					)					)


if __name__ == "__main__":
     A_      			=       sys.argv[1]
     A_      			=       sys.argv[2]

     format_json_to_md(input_json_file, output_md_file)












"""simple docstring"""


from __future__ import annotations

import math


def       UpperCAmelCase__ (snake_case__							:      int					):
  """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(snake_case__					) + 1					)	,     6					):
    if number % i == 0 or number % (i + 2) == 0:
      return False
  return True


A_      			=       [num for num in range(3, 10_00_01, 2) if not is_prime(num)]


def       UpperCAmelCase__ (snake_case__							:      int					):
  """simple docstring"""

  if not isinstance(snake_case__	,     snake_case__					):
    raise ValueError("""n must be an integer"""					)
  if n <= 0:
    raise ValueError("""n must be >= 0"""					)

  _snake_case							:	Any			=						[]
  for num in range(len(snake_case__					)					):
    _snake_case							:	Optional[int]			=						0
    while 2 * i * i <= odd_composites[num]:
      _snake_case							:	Optional[int]			=						odd_composites[num] - 2 * i * i
      if is_prime(snake_case__					):
        break
      i += 1
    else:
      list_nums.append(odd_composites[num]					)
      if len(snake_case__					) == n:
        return list_nums

  return []


def       UpperCAmelCase__ ():
  """simple docstring"""

  return compute_nums(1					)[0]


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


