/usr/share/doc/libcln-dev/examples/perfnum.cc is in libcln-dev 1.3.4-2+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | // This program prints the largest now known even perfect number.
#include <cln/integer.h>
#include <cln/integer_io.h>
using namespace std;
using namespace cln;
int main ()
{
// previous ones were 1257787, 1398269, 2976221, 3021377, 6972593,
// 13466917, 20996011, 24036583, 25964951, 30402457, 32582657, 37156667,
// 42643801, 43112609
int p = 57885161;
cl_I x = (((cl_I)1 << p) - 1) << (p-1);
cout << x << endl;
}
|