import math


def getFactors(n):
    """Get a list of factors of n (up to srt(n))"""
    factorList=[]
    l=int(math.ceil(math.sqrt(n)))
    for factors in range(2,l+1):
        if n%(factors)==0:
            factorList.append(factors)
    return factorList