login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A100604
Numbers k such that (prime(k)-1)! + prime(k)^3 is prime.
1
2, 3, 4, 28, 894
OFFSET
1,1
COMMENTS
k = {2, 3, 4, 28} yields primes p(k) = {3, 5, 7, 107}. There are no more such k up to k=100. Verified by Ray Chandler.
a(5) > 600. - Jinyuan Wang, Apr 10 2020
a(6) > 2500. - Michael S. Branicky, Jul 02 2024
FORMULA
Numbers k such that (prime(k)-1)! + prime(k)^3 is prime, where prime(k) is the k-th prime.
EXAMPLE
a(3) = 4 because (prime(4)-1)! + prime(4)^3 = (7-1)! + 7^3 = 720 + 343 = 1063 is the 3rd prime of this form.
MATHEMATICA
Select[Range[30], PrimeQ[(Prime[#]-1)!+Prime[#]^3]&] (* Harvey P. Dale, Jul 13 2022 *)
PROG
(PARI) is(k) = ispseudoprime((prime(k)-1)! + prime(k)^3); \\ Jinyuan Wang, Apr 10 2020
CROSSREFS
Sequence in context: A098549 A274677 A062931 * A059614 A333074 A241974
KEYWORD
nonn,hard,more
AUTHOR
Jonathan Vos Post, Nov 30 2004
EXTENSIONS
a(5) from Michael S. Branicky, Jul 01 2024
STATUS
approved