|
|
A125174
|
|
Primes of the form n! + (n+1)! - 1.
|
|
0
|
|
|
2, 7, 29, 839, 3991679, 93405311999, 1394852659199, 6758061133823999, 315777214062132212662271999999, 9146650338351415815045119999999, 303916116658416027343136804044799999999
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
EXAMPLE
|
0!+1!-1 = 1 is not prime, 1!+2!-1 = 2 is prime, 2!+3!-1 = 7 is prime, 3!+4!-1 = 29 is prime, 4!+5!-1 = 143 = 11*13 is not prime.
|
|
PROG
|
(PARI) for(n=0, 35, if(isprime(a=n!+(n+1)!-1), print1(a, ", ")))
|
|
CROSSREFS
|
Cf. A118913 (primes of the form n! + (n+1)! + 1).
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|