|
|
A108270
|
|
Numbers n such that n*n! + (smallest prime >= n) is prime.
|
|
1
|
|
|
1, 4, 6, 8, 30, 40, 164, 176, 189, 218, 370, 597, 603, 1473, 2176, 2436, 2548, 2732, 4758, 5574
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Note that Maple, PARI etc. have different notions of what "next prime" means!
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
Select[Range[5600], PrimeQ[# (#!) +NextPrime[#-1]]&] (* Harvey P. Dale, Oct 07 2019 *)
|
|
PROG
|
(PARI) for(x=1, 1000, if(isprime(x*x!+nextprime(x)), print1(x, ", ")))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|