OFFSET
1,1
COMMENTS
Or, numbers n such that A152117(n) is prime. - Zak Seidov, Feb 05 2016
EXAMPLE
4*prime(4)+5*prime(5) = 4*7+5*11 = 83 prime.
MATHEMATICA
bb={}; Do[If[PrimeQ[n Prime[n]+(n+1)Prime[n+1]], bb=Append[bb, n]], {n, 400}]; bb
Select[Range[250], PrimeQ[# Prime[#]+(#+1)Prime[#+1]]&] (* Harvey P. Dale, Dec 08 2011 *)
PROG
(PARI) isok(n) = isprime(n*prime(n)+(n+1)*prime(n+1)); \\ Michel Marcus, Feb 05 2016
(PARI) lista(nn) = {for(n=1, nn, if(ispseudoprime(n*prime(n)+(n+1)*prime(n+1)), print1(n, ", "))); } \\ Altug Alkan, Feb 05 2016
(Magma) [n: n in [1..250] | IsPrime(n*NthPrime(n)+(n+1)*NthPrime(n+1))]; // Vincenzo Librandi, Feb 06 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, May 02 2005
STATUS
approved