https://github.com/firee1/cpp-perfect-numbers
Simple program for finding the perfect numbers.
https://github.com/firee1/cpp-perfect-numbers
cpp cpp17 perfect-number veritasium
Last synced: 2 months ago
JSON representation
Simple program for finding the perfect numbers.
- Host: GitHub
- URL: https://github.com/firee1/cpp-perfect-numbers
- Owner: FireE1
- Created: 2024-06-11T08:54:50.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-11T13:46:28.000Z (12 months ago)
- Last Synced: 2025-01-27T22:48:48.351Z (4 months ago)
- Topics: cpp, cpp17, perfect-number, veritasium
- Language: C++
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cpp-perfect-numbers
This is simple program for finding the [perfect numbers](https://en.wikipedia.org/wiki/Perfect_number).## What is a 'Perfect number':
In number theory, a perfect number is a positive integer that is equal to the sum of its positive proper divisors, that is, divisors excluding the number itself. For instance, 6 has proper divisors 1, 2 and 3, and ```1 + 2 + 3 = 6```, so 6 is a perfect number. The next perfect number is 28, since ```1 + 2 + 4 + 7 + 14 = 28```.
From [Wiki](https://en.wikipedia.org/wiki/Perfect_number)## Why this program exist:
I got inspired by video 'The oldest unsolved problem in math' by Veritasium on [YouTube](https://www.youtube.com/watch?v=Zrv1EDIqHkY), so i thought 'i want to write it as a program'. And here it is.
## Usage:
Nothing special, just start it in your console.## Build requirements:
- C++17 (STL)
- Clang++ 17## Planned:
- Optimize counting
- Implement multithreading
- Expand counting limits