def get_primes(n):
    """
    Returns prime factors for an integer N
    :param n: integer to factor
    :return: list<integers> prime factors
    """
    primefac = []
    d = 2
    while d*d <= n:
        while (n % d) == 0:
            primefac.append(d)  # supposing you want multiple factors repeated
            n //= d
        d += 1
    if n > 1:
        primefac.append(n)
    return primefac