Topic: Mathematics Problem / Level: intermediate

Problem: Write a program to find the total number of perfect numbers below a given number.

Run the code to see the output here...