OFFSET
1,1
COMMENTS
EXAMPLE
P=7: 5*7 - 4 = 31, 4*7 - 5 = 23, both prime so 7 is in this sequence, and belongs to the subsequence of terms satisfying A(4*p) - A(3*p) = 9.
P=109: 5*109 - 4 = 541, 4*109 - 5 = 431, both prime so 109 is in this sequence, and belongs to the subsequence of terms satisfying 5*A(4*p) - 3*A(5*p) = 3.
MATHEMATICA
Select[Prime@ Range@ 516, Times @@ Boole@ Map[PrimeQ, {5 # - 4, 4 # - 5}] > 0 &] (* Michael De Vlieger, Aug 02 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
David James Sycamore, Aug 02 2017
EXTENSIONS
More terms from Altug Alkan, Aug 02 2017
STATUS
approved