Browse Source

* examples/perfnum.cc: update to presumed 40th Mersenne prime.

master
Richard Kreckel 21 years ago
parent
commit
4016593313
  1. 4
      ChangeLog
  2. 4
      examples/perfnum.cc

4
ChangeLog

@ -1,3 +1,7 @@
2004-06-10 Richard B. Kreckel <kreckel@ginac.de>
* examples/perfnum.cc: update to presumed 41st Mersenne prime.
2004-05-02 Richard B. Kreckel <kreckel@ginac.de>
* Version 1.1.7 released.

4
examples/perfnum.cc

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