← BackMark CompleteFactorsDivisors of n; iterate to sqrt to list in O(sqrt n).mathdivisorsUpdated 2025-09-01MethodFor i=1..sqrt(n) if n%i==0 add i and n/iUseNumber theoryOptimization