Start with 1 and the number itself
Test whole numbers in order
Divide the number by each whole number
If the division gives no remainder, the number is a factor
Pair the factor with its matching quotient
Stop when the factors repeat or pass the square root
List all factor pairs
Include negative factors if needed
Check whether the number is prime or composite
