First attempt at prime factorisation.

The algorithm can definitely be optimised more, but I'm not sure how you
would go about doing that via TDD. Need to ask around for some advice.