A semiprime number is defined as a natural number that is the product of two prime numbers. For example, 21 is a semiprime (3 * 7) or 25 (5 * 5).
I've been looking to try and create a function that could take a semiprime number as it's input and return the two prime numbers which are the prime factors of that input. I've been struggling to come up with ideas. Could anyone help to think of a method of approaching this?