Write a program that finds a Perfect Number | Java | Sublime | Coding Tutorials |

Pubblicato il: 16 febbraio 2020
sul canale di: Haider Nawaz
18
3

Perfect number, a positive integer that is equal to the sum of its proper divisors. The
smallest perfect number is 6, which is the sum of 1, 2, and 3. Other perfect numbers are 28, 496,
and 8,128.
The factors of 6 are 1, 2, 3 and 6.
1 + 2 + 3 = 6
The factors of 28 are 1, 2, 4, 7, 14 and 28.
1 + 2 + 4 + 7 + 14 = 28
The factors of 496 are 1, 2, 4, 8, 16, 31, 62, 124, 248 and 496.
1 + 2 + 4 + 8 + 16 + 31 + 62 + 124 + 248 = 496
The factors of 8128 are 1, 2, 4, 8, 16, 32, 64, 127, 254, 508, 1016, 2032, 4064 and 8128.


In questa pagina del sito puoi guardare il video online Write a program that finds a Perfect Number | Java | Sublime | Coding Tutorials | della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Haider Nawaz 16 febbraio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 18 volte e gli è piaciuto 3 spettatori. Buona visione!