You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
357 B
15 lines
357 B
// 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
|
|
int p = 25964951;
|
|
cl_I x = (((cl_I)1 << p) - 1) << (p-1);
|
|
cout << x << endl;
|
|
}
|