Calculate Divisors and Analyze Complexity