OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
p:= 1: count:= 0: Res:= NULL:
for n from 1 while count < 100 do
p:= nextprime(p);
if isprime(n*p+n+p) then
count:= count+1; Res:= Res, n
fi
od:
Res; # Robert Israel, Oct 25 2018
MATHEMATICA
npQ[n_]:=Module[{p=Prime[n]}, PrimeQ[n*p+n+p]]; Select[Range[250], npQ] (* Harvey P. Dale, Mar 27 2022 *)
PROG
(PARI) is(n) = isprime((n + 1) * (prime(n) + 1) - 1); \\ Altug Alkan, Oct 01 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Alex Ratushnyak, Sep 30 2016
STATUS
approved