Jump to content

Factorial primes: Difference between revisions

m
(→‎{{header|ALGOL 68}}: Use trial division to test for primes as we are only going up to the tenth factorial prime)
Line 51:
FOR n WHILE fp count < 10 DO
f *:= n;
IF LONG INT fp := f - 1;
IF is prime( fp )
THEN
fp count +:= 1;
show factorial prime( fp count, n, "-", fp )
FI;
IF LONG INT fp +:= f + 12;
IF is prime( f + 1fp )
THEN
fp count +:= 1;
3,048

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.