C++
gcc 8.1.0
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-8.1.0/include -std=gnu++2a
PERFECT NUMBERS: 6 28 496 DONE.