8000 GitHub - armagansarikey/FindingPerfectNumber: Mükemmel sayı bulma programı
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

armagansarikey/FindingPerfectNumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Bu kod reposunda, bir sayının mükemmel sayı olup olmadığını bulan bir kod bulunmaktadır.

Mükemmel sayı, kendisinden küçük olan pozitif tam bölenleri toplamı, kendisine eşit olan pozitif tam sayıdır.

Örnek:

6 sayısı: Pozitif tam bölenleri (kendisinden küçük): 1, 2, 3 Toplamları: 1 + 2 + 3 = 6 → Bu nedenle 6 mükemmel sayıdır.

Başka bir örnek: 28 → Bölenleri: 1, 2, 4, 7, 14 Toplam: 1 + 2 + 4 + 7 + 14 = 28 → Bu da mükemmel sayıdır.

İlk birkaç mükemmel sayı: 6, 28, 496, 8128

Örnek kod çıktısı:

image

About

Mükemmel sayı bulma programı

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0