Anonymous user
Lucas-Lehmer test: Difference between revisions
m
→{{header|C}}: They snuck that one in there...
(→{{header|C++}}: As far as I got after 36 hours of computation) |
m (→{{header|C}}: They snuck that one in there...) |
||
Line 85:
See also: http://www.xs4all.nl/~jmvdveer/mersenne.a68.html
=={{header|C}}==
{{works with|C99}}
Compiler options: gcc -std=c99 -lm Lucas-Lehmer_test.c -o Lucas-Lehmer_test<br>▼
#include <math.h>
#include <stdio.h>
Line 130 ⟶ 133:
printf("\n");
}
▲Compiler version: gcc version 4.1.2 20070925 (Red Hat 4.1.2-27)<br>
▲Compiler options: gcc -std=c99 -lm Lucas-Lehmer_test.c -o Lucas-Lehmer_test<br>
Output:
Mersenne primes:
|