Prime Factor kata from http://content.codersdojo.org/code-kata-catalogue/prime-factors/