OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1)=1 because 18*1-5=13 is prime and 18*1+5=23 is prime.
MATHEMATICA
Select[Range[400], AllTrue[18#+{5, -5}, PrimeQ]&] (* Harvey P. Dale, Feb 25 2022 *)
PROG
(Magma) [n: n in [1..2500]|IsPrime(18*n-5) and IsPrime(18*n+5)] // Vincenzo Librandi, Dec 19 2010
(PARI) forprime(p=2, 1e4, if(p%18==5 & isprime(p-10), print1(p\18", "))) \\ Charles R Greathouse IV, May 25 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Juri-Stepan Gerasimov, Jan 29 2010
EXTENSIONS
Definition corrected and 49 inserted by R. J. Mathar and D. S. McNeil, May 22 2010
Corrected by D. S. McNeil, May 22 2010
STATUS
approved