OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
5 is a member since 5 + 7 + 1 = 13 and 5 * 7 + 2 = 37 are both primes.
MATHEMATICA
Select[Prime[Range[900]], PrimeQ[# + NextPrime[#] + 1] && PrimeQ[#*NextPrime[#] + 2] &]
npQ[n_]:=Module[{np=NextPrime[n]}, AllTrue[{n+np+1, n*np+2}, PrimeQ]]; Select[ Prime[ Range[900]], npQ] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jul 04 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jayanta Basu, Apr 17 2013
STATUS
approved