Quote:
Originally Posted by The Dark
for ( int i = 2; i <= n; i++ ) You should use n/2 for the upper limit (as you did in your first post). Anything bigger than n/2 is not going to be a divisor of n.
|
Oops. :o
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
|