finished problem

changed divisor algorithm to current one using square root method to
lessen number of computation; removed testing code as well