Added remainder based division
Added prime_factor function