Question: A positive integer is called a perfect number if it is equal to the sum of all of its positive divisors, excluding itself. For example,
A positive integer is called a perfect number if it is equal to the sum of all of its positive divisors, excluding itself. For example, 6 is the first perfect number, because 6 = 3 + 2 + 1. The next is 28 = 14 + 7 + 4 + 2 + 1. There are four perfect numbers less than 10,000. Write a program to find these four numbers. 3 pts: Software Development Lifecycle Plan (see assn #5 for description) 10 pts: Find the four perfect numbers 5 pts: Print the total running time, in seconds, of the program 10 pts: At the end of the program print the total number of iterations of the inner loop that were completed 4 pts: Fewer than 48,500,000 iterations of the inner loop are completed 4 pts: Fewer than 24,900,000 iterations of the inner loop are completed 4 pts: Fewer than 16,000,000 iterations of the inner loop are completed 5 pts: Follow proper coding conventions Solved in python 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
