Perfect Numbers (1983)
PERFECT NUMBERS. A perfect number is one such that all its factors, including one but excluding. 6 is a perfect number since 6 has factors. Euclid proved in his Elements that a number of the form 2. I used this fact to write a programme in Basic to ﬁnd perfect numbers but. Rst we need a programme on prime numbers for checking if 2. 11 rem to calculate prime numbers up to a. 20 input a. 22 if a=2 then print"2": goto 100. So now let us see how we can use lines 40-60 to ﬁnd perfect numbers.