← Accenture questions

Count all perfect numbers in a given range

Filed under Accenture

Write a program to count all perfect numbers within the range of 5000 to 9000. A perfect number is a positive integer that is equal to the sum of its proper divisors, excluding the number itself. For…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Accenture questions

Collected from public candidate posts and coding forums. Updated Nov 2026.