OFFSET
1,1
COMMENTS
All of the numbers in this sequence are congruent to either 1 or 9 mod 10.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
11 is prime, 11*8+9 = 97 is prime, and 9*11+8 = 107 is prime. Thus, 11 is a member of this sequence.
MATHEMATICA
Select[Prime[Range[800]], AllTrue[{8#+9, 9#+8}, PrimeQ]&] (* The program uses the function AllTrue from Mathematica version 10 *) (* Harvey P. Dale, Aug 20 2014 *)
PROG
(Python)
import sympy
from sympy import isprime
{print(n) for n in range(5000) if isprime(8*n+9) and isprime(9*n+8) and isprime(n)}
(PARI) s=[]; forprime(p=2, 6000, if(isprime(8*p+9) && isprime(9*p+8), s=concat(s, p))); s \\ Colin Barker, Mar 26 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Derek Orr, Mar 25 2014
STATUS
approved