Functional prime factorization calculator for numbers less than 10 digits. Have to tweak the logic a little to make it fully functional