Top "Perfect-numbers" questions

A perfect number is a positive integer that is equal to the sum of its proper positive divisors, that is, the sum of its positive divisors excluding the number itself

Algorithm to check if a number if a perfect number

I am looking for an algorithm to find if a given number is a perfect number. The most simple that …

algorithm math perfect-numbers
Perfect numbers between 1 and 1000

I don't understand why this program doesn't give any output. I just can't see the bug. This is a program …

c while-loop perfect-numbers
Perfect numbers 1 to n

Write an algorithm that prints perfect numbers from 1 to n. To determine if a number is perfect add up all …

java if-statement for-loop perfect-numbers
Java program to find perfect numbers below 10,000

I am currently working on java code that will allow me to print out all perfect numbers below 10,000. My issue …

java perfect-numbers
did my program on perfect numbers in python and not sure if i should use (1,1000) or (2, n+1) in range

I did lab on perfect numbers in python it runs fine and prints numbers that I need. But not sure …

python perfect-numbers
Perfect number method

This program is supposed to take user input and determine whether or not it is a perfect number. When I …

java methods types perfect-numbers
Perfect number in java using methods for homework

I had a to write a homework for class and got stuck with it, can't figure out how to make …

java methods perfect-numbers