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!)
A268475 Numbers n such that n^3 +/- 2 and 3*n +/- 2 are all prime. 1
435, 555, 2415, 31635, 38025, 44835, 80625, 88335, 97455, 98505, 99435, 124335, 142065, 145095, 165375, 176055, 204765, 246435, 279225, 293475, 310095, 315555, 332085, 344745, 348735, 376935, 392415, 443595, 462105, 467385, 482355, 581415, 609555, 626775, 636015 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
All the terms in this sequence are congruent to 0 (mod 5).
Each term in this sequence yields two sets of cousin prime pairs i.e., for n = 435 -> {82312877, 82312873} and {1307, 1303}.
All terms are congruent to 15 mod 30. - Robert Israel, Feb 05 2016
LINKS
EXAMPLE
435 is in the sequence because 435^3 + - 2 = 82312877, 82312873; 3*435 + - 2 = 1307, 1303 are all prime.
555 is in the sequence because 555^3 + - 2 = 170953877, 170953873; 3*555 + - 2 = 1667, 1663 are all prime.
MAPLE
select(n -> andmap(isprime, [n^3 + 2, n^3 - 2, 3*n + 2, 3*n - 2]), [seq(p, p=1.. 10^6)]);
MATHEMATICA
Select[Range[1000000], PrimeQ[#^3 + 2] && PrimeQ[#^3 - 2] && PrimeQ[3 # + 2] && PrimeQ[3 # - 2] &]
PROG
(PARI) for(n = 1, 1e5, if( isprime(n^3 + 2) && isprime(n^3 - 2) && isprime(3*n + 2) && isprime(3*n - 2), print1(n ", ")))
(Magma) [n : n in [1..1e5] | IsPrime(n^3 + 2) and IsPrime(n^3 - 2) and IsPrime(3*n + 2) and IsPrime(3*n - 2)];
CROSSREFS
Sequence in context: A054987 A054905 A160353 * A212227 A369153 A237302
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Feb 05 2016
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 12:31 EDT 2024. Contains 371937 sequences. (Running on oeis4.)