I see, sorry didn't mean to spoil any ideas :D
Type: Posts; User: robin_
I see, sorry didn't mean to spoil any ideas :D
Why n/2? Don't you mean the square root of n?
Remember you also only have to check the odd divisors.
Instead of counting the divisors, have you tried checking all possible divisors? I mean iterate from 2 to (n-1) if your number is n. A tip by the way, if your number is even and larger than 2, you...