input: from typing import List
  
  def find_largest_prime_factor(number: int) -> int:
      """ Find the largest prime factor for the given number.
      >>> find_largest_prime_factor(331)
      331
      >>> find_largest_prime_factor(50)
      5
      """
      factors: List[int] = []
      for i in range(2, int(number**0.5) + 1):
          while number % i == 0:
              factors.append(i)
              number //= i
      if number > 1:
          factors.append(number)
      return max(factors)
output:     factors: List[int] = []
      for i in range(2, int(number**0.5) + 1):
          while number % i == 0:
              factors.append(i)
              number //= i
      if number > 1:
          factors.append(number)
      return max(factors)