uploaded problem 12 script with trial division factorization algorithm that has room for improvement