Fixed bug in num_factors with numbers that have a single prime factor (repeated)