Browse Source

* examples/perfnum.cc: update to presumed 42st Mersenne prime.

master
Richard Kreckel 20 years ago
parent
commit
5332b309a5
  1. 4
      ChangeLog
  2. 4
      examples/perfnum.cc

4
ChangeLog

@ -1,3 +1,7 @@
2005-02-27 Richard B. Kreckel <kreckel@ginac.de>
* examples/perfnum.cc: update to presumed 42st Mersenne prime.
2004-11-28 Richard B. Kreckel <kreckel@ginac.de> 2004-11-28 Richard B. Kreckel <kreckel@ginac.de>
Disambiguate binary operators of CLN types with float/double Disambiguate binary operators of CLN types with float/double

4
examples/perfnum.cc

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