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.

11 lines
237 B

25 years ago
  1. // This program prints the largest now known perfect number.
  2. #include <cl_integer.h>
  3. #include <cl_integer_io.h>
  4. int main ()
  5. {
  6. int p = 1398269; // previous one was 1257787
  7. cl_I x = (((cl_I)1 << p) - 1) << (p-1);
  8. cout << x << endl;
  9. }