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.

17 lines
425 B

25 years ago
25 years ago
25 years ago
  1. // This program prints the largest now known even perfect number.
  2. #include <cln/integer.h>
  3. #include <cln/integer_io.h>
  4. using namespace std;
  5. using namespace cln;
  6. int main ()
  7. {
  8. // previous ones were 1257787, 1398269, 2976221, 3021377, 6972593,
  9. // 13466917, 20996011, 24036583, 25964951, 30402457, 32582657, 37156667,
  10. // 42643801, 43112609
  11. int p = 57885161;
  12. cl_I x = (((cl_I)1 << p) - 1) << (p-1);
  13. cout << x << endl;
  14. }