@Shmoopy,
Finding factors of a number?
Even numbers, except for 2, are always divisible by 2. Take out 2's until you have an odd number.
Take that odd number and find the square root--then divide the number by all odd prime numbers less than the square root.