input: def generate_prime_numbers(n: int) -> None:
      """ Generate and print all prime numbers between 1 and a given number n.
      >>> generate_prime_numbers(10)
      2
      3
      5
      7
      >>> generate_prime_numbers(20)
      2
      3
      5
      7
      11
      13
      17
      19
      """
output:     if n < 2:
          return
      primes = []
      for num in range(2, n + 1):
          is_prime = True
          for i in range(2, int(num**0.5) + 1):
              if num % i == 0:
                  is_prime = False
                  break
          if is_prime:
              primes.append(num)
      for prime in primes:
          print(prime)