OFFSET
1,1
COMMENTS
The prime p is followed by two semiprimes; a third semiprime is not possible. - T. D. Noe, Jul 23 2008
Similarly, the only "prime sandwiched by semiprimes" is 5. - Zak Seidov, Aug 04 2013
For n > 1, a(n) == 1 or (7 mod 10). If a(n) == 3 (mod 10), then (a(n) + 2)/3 == 0 (mod 5) which is a composite number if a(n) > 13. - Chai Wah Wu, Nov 30 2016
All terms are congruent to 1 (mod 12). - Zak Seidov, Feb 16 2017
LINKS
Jon E. Schoenfield, Table of n, a(n) for n = 1..10000 (first 1000 terms from T. D. Noe)
MATHEMATICA
lst={}; Do[p=Prime[n]; If[PrimeQ[(p+1)/2]&&PrimeQ[(p+2)/3], AppendTo[lst, p]], {n, 8!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jul 31 2009 *)
PROG
(PARI) is_A036570(n)={ !(n%3-1) & isprime(n\3+1) & isprime(n\2+1) & isprime(n) }
for(n=1, 2e4, is_A036570(n) & print1(n", ")) \\ M. F. Hasler, Feb 26 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved