login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
Sequence in context: A010091 A206630 A191944 * A223429 A168661 A175698
KEYWORD
nonn,less
AUTHOR
EXTENSIONS
Edited by David A. Corneth, Oct 04 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 03:05 EDT 2024. Contains 371918 sequences. (Running on oeis4.)