Solve #7
Refactor 'factors/prime' out to shared lib