|
|
A157256
|
|
Primes p such that both p^5 - 6 and p^5 + 6 are prime.
|
|
1
|
|
|
1087, 3253, 4993, 9277, 11807, 14717, 15073, 17033, 20627, 24197, 26953, 29753, 31883, 33023, 33637, 36473, 38113, 40387, 40897, 41843, 43403, 52057, 58153, 62473, 66587, 67967, 70537, 83983, 99173, 99713, 102023, 108287, 117673, 124247
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
EXAMPLE
|
1087 is a term as 1087 is prime, 1087^5 - 6 = 1517566463014201 is prime and 1087^5 + 6 = 1517566463014213 is prime.
|
|
MATHEMATICA
|
q=5; lst={}; Do[p=Prime[n]; If[PrimeQ[p^q-q-1]&&PrimeQ[p^q+q+1], AppendTo[lst, p]], {n, 5*7!}]; lst
Select[Prime[Range[12000]], AllTrue[#^5+{6, -6}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Oct 04 2019 *)
|
|
PROG
|
(PARI) is(n) = isprime(n) && isprime(n^5 - 6) && isprime(n^5 + 6) \\ David A. Corneth, Oct 04 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,less
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|