input: Write a function to generate a sequence of prime numbers up to a given number \( n \) using Python. The function should print each prime number in the sequence.
  
  ### Example:
  assert generate_prime_numbers(10)
  # The function should print: 2 3 5 7
  
  assert generate_prime_numbers(20)
  # The function should print: 2 3 5 7 11 13 17 19
output: def generate_prime_numbers(n):
      for num in range(2, n + 1):
          if all(num % i != 0 for i in range(2, int(num ** 0.5) + 1)):
              print(num, end=' ')