Prime Number Checker

Check if a number is prime and find its factors if it is not.