Browse Source

* Updated to 43rd known Mersenne prime.

master
Richard Kreckel 19 years ago
parent
commit
f51115033f
  1. 4
      examples/perfnum.cc

4
examples/perfnum.cc

@ -8,8 +8,8 @@ using namespace cln;
int main ()
{
// previous ones were 1257787, 1398269, 2976221, 3021377, 6972593, 13466917, 20996011, 24036583
int p = 25964951;
// previous ones were 1257787, 1398269, 2976221, 3021377, 6972593, 13466917, 20996011, 24036583, 25964951
int p = 30402457;
cl_I x = (((cl_I)1 << p) - 1) << (p-1);
cout << x << endl;
}
Loading…
Cancel
Save