+ 1
Challenge: Numbers with Friends
The sum of all natural ( positive integer ) number of dividers 220, except 220, is equal to 1+2+4+5+10+11+20+22+44+55+110 = 284 and the sum of all natural number of dividers 284 , except himself is equal to 1+2+4+71+142 = 220 . The numbers 220 and 284 are called friends. Generally, we say that two positive integers are friends if each of their divisors' sum (Excluding the number itself) equal the other number. Write the program to calculate all number friends from 2 to
6 Réponses
+ 6
Check out mine.....
https://code.sololearn.com/ci7i6EjNjZ7o/?ref=app
+ 5
But what about perfect nos .!!!???
They have no friends lol!!!
Or they r their own friends....!
+ 2
first (recycled from another challenge about same topic 😁)
https://code.sololearn.com/c19i5PHXvRTF/?ref=app
+ 2
https://www.sololearn.com/Discuss/553615/?ref=app
https://code.sololearn.com/cigSFdt6AYrF/?ref=app
+ 1
mine on C#. They does not repeat
https://code.sololearn.com/c916HGEdAw88/?ref=app
0
My code in Python 😉
https://code.sololearn.com/cX4qoLavf2oM/?ref=app