An open API service indexing awesome lists of open source software.

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.

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