File: perfnum.cc

package info (click to toggle)
cln 0.98-7.1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 12,188 kB
  • ctags: 15,282
  • sloc: cpp: 71,545; ansic: 12,015; asm: 8,431; sh: 3,159; makefile: 886; lisp: 64
file content (11 lines) | stat: -rw-r--r-- 217 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
// This program prints the largest now known perfect number.

#include <cl_integer.h>
#include <cl_io.h>

main ()
{
	int p = 1398269; // previous one was 1257787
	cl_I x = (((cl_I)1 << p) - 1) << (p-1);
	cout << x;
}