Weader
02-01-2012, 09:22 PM
Sooo I need to make a simple program that counts the number (d) of variables that any positive integer (n) has in the range of [2, 2147483647] using only iostream and namespace std.
I know that n % d ==0 means that a divisor has been found, but how do I continue to find all positive divisors of the number? Would I continue to divide? I'm sort of lost, will rep for help.
I know that n % d ==0 means that a divisor has been found, but how do I continue to find all positive divisors of the number? Would I continue to divide? I'm sort of lost, will rep for help.