OFFSET
1,2
EXAMPLE
a(4) = 22 = A064402(6): prime(22) = 79, 79 + {22, 22^2} = {101, 563} both prime.
MAPLE
A254867:=n->`if`(isprime(ithprime(n)+n) and isprime(ithprime(n)+n^2), n, NULL): seq(A254867(n), n=1..10^4); # Wesley Ivan Hurt, Jan 16 2017
MATHEMATICA
Select[Range[1000], PrimeQ[Prime[#] + #] && PrimeQ[Prime[#] + #^2] &] (* Alonso del Arte, Feb 09 2015 *)
Select[Range[3000], AllTrue[Prime[#]+{#, #^2}, PrimeQ]&] (* Harvey P. Dale, Jan 17 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 09 2015
STATUS
approved