from typing import List


def prime_factorization(N: int) -> List[int]:
    """Get list of prime factors of `N` in ascending order"""
    factors = []
    p = 2
    while p * p <= N:
        while N % p == 0:
            factors.append(p)
            N //= p
        p += 1
    if N > 1:  # any left-over factor must be prime itself
        factors.append(N)
    return factors