Programming to solve the integer factorization problem