]> www.ginac.de Git - cln.git/blobdiff - examples/perfnum.cc
Work around g++ 4.0 "duplicated labels" problem.
[cln.git] / examples / perfnum.cc
index 2d930e9b7c7b34fc3396965f92d83a813c8edfef..1b7c96988a63d5cf48d0a44adb17def709c6b901 100644 (file)
@@ -1,11 +1,15 @@
-// This program prints the largest now known perfect number.
+// This program prints the largest now known even perfect number.
 
-#include <cl_integer.h>
-#include <cl_integer_io.h>
+#include <cln/integer.h>
+#include <cln/integer_io.h>
+
+using namespace std;
+using namespace cln;
 
 int main ()
 {
-       int p = 1398269; // previous one was 1257787
+       // previous ones were 1257787, 1398269, 2976221, 3021377, 6972593, 13466917, 20996011, 24036583
+       int p = 25964951;
        cl_I x = (((cl_I)1 << p) - 1) << (p-1);
        cout << x << endl;
 }