About Complete (Java) Solution


#1

in loop code if (i < n && n % i == 0) return 0;

is i < n necessary?