소수 확인기

Check if a number is prime and find its factors.