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!)
A252042 Primes p such that 2*p^3 + 1 and 2*p^3 + 3 are also primes. 1
2, 29, 1709, 5849, 6857, 6959, 8999, 10139, 11909, 13127, 13877, 15077, 15749, 17657, 19457, 23357, 23399, 26729, 27407, 27479, 28349, 30047, 31907, 32957, 39569, 46559, 46589, 46817, 50417, 58757, 59219, 60737, 62207, 62687, 62819, 66947, 70589, 71237, 74699 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(2) = 29 is prime: 2*29^3 + 1 = 48779 and 2*29^3 + 3 = 48781 are both primes.
a(3) = 1709 is prime: 2*1709^3 + 1 = 9982887659 and 2*1709^3 + 3 = 9982887661 are both primes.
MATHEMATICA
Select[Prime[Range[10000]], And[PrimeQ[2*#^3 + 1], PrimeQ[2*#^3 + 3]] &]
Select[Prime[Range[7500]], AllTrue[2#^3+{1, 3}, PrimeQ]&] (* Harvey P. Dale, Apr 03 2023 *)
PROG
(PARI) s=[]; forprime(p=2, 10^5, if(isprime(2*p^3 + 1) && isprime(2*p^3 + 3), s=concat(s, p))); s
CROSSREFS
Sequence in context: A077282 A059725 A112784 * A295426 A055559 A350858
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Dec 13 2014
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 17 20:45 EDT 2024. Contains 371767 sequences. (Running on oeis4.)