OFFSET
1,1
COMMENTS
Is 17 the only term that is not equal to 3 mod 10? It is the only such term up to the one millionth prime. - Harvey P. Dale, Jan 25 2023
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Sexy Primes. [The definition in this webpage is unsatisfactory, because it defines a "sexy prime" as a pair of primes.- N. J. A. Sloane, Mar 07 2021].
FORMULA
a(n) = A046122(n) + 6. - Amiram Eldar, Apr 22 2022
MATHEMATICA
lst={}; Do[p=Prime[n]; If[PrimeQ[p+6]&&PrimeQ[p+12]&&PrimeQ[p+18], AppendTo[lst, p+12]], {n, 8!}]; lst (* Vladimir Joseph Stephan Orlovsky, Aug 29 2008 *)
Select[Prime[Range[3000]], AllTrue[#+{-12, -6, 6}, PrimeQ]&] (* Harvey P. Dale, Jan 25 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved