input: def find_primes(n: int) -> None:
      """Find and print all prime numbers up to n.
      >>> find_primes(10)
      2
      3
      5
      7
      """
      def is_prime(num: int) -> bool:
          for i in range(2, int(num ** 0.5) + 1):
              if num % i == 0:
                  return False
          return True
  
      for n in range(2, n + 1):
          if is_prime(n):
              print(n)
output:     for n in range(2, n + 1):
          if is_prime(n):
              print(n)