OFFSET
1,1
COMMENTS
The terms of this sequence are created by pairing the terms of the primes when the terms 30k - 7 and 30k + 7 are both prime. As has been pointed out, it is only a guess as to whether, or not, that (like the twin primes, etc.) there is or is not an infinite number of these pairings.
EXAMPLE
As 4 * 30 - 7 = 113 and 4 * 30 + 7 = 127 are prime, both 113 and 127 are in the sequence. - David A. Corneth, Nov 10 2019
MATHEMATICA
Select[Prime[Range[1000]], MemberQ[{7, 23}, Mod[#, 30]] &] (* Jinyuan Wang, Nov 16 2019 *)
Flatten[Select[Table[30n + {-7, 7}, {n, 90}], PrimeQ[#[[1]]] && PrimeQ[#[[2]]] &]] (* Alonso del Arte, Dec 07 2019 *)
PROG
(PARI) first(n) = n+=(n%2); my(res=List(), todo=n); for(i=1, oo, if(isprime(30*i-7) && isprime(30*i+7), listput(res, 30*i-7); listput(res, 30*i+7); todo-=2; if(todo<=0, return(res)))) \\ David A. Corneth, Nov 10 2019
(Magma) &cat[[30*k-7] cat [30*k+7]:k in [1..60]|IsPrime(30*k-7) and IsPrime(30*k+7)]; // Marius A. Burtea, Nov 17 2019
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Harry E. Neel, Nov 09 2019
STATUS
approved