OFFSET
1,1
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..1300
EXAMPLE
7 is prime and appears in the sequence because 7^2+4 = 53 and 7^2+10 = 59 are also primes.
97 is prime and appears in the sequence because 97^2+4 = 9413 and 97^2+10 = 9419 are also primes.
MAPLE
KD := proc() local a, b, d; a:=ithprime(n); b:=a^2+4; d:=a^2+10; if isprime (b) and isprime(d) then RETURN (a); fi; end: seq(KD(), n=1..5000);
MATHEMATICA
Select[Prime[Range[5000]], PrimeQ[#^2 + 4] && PrimeQ[#^2 + 10] &]
PROG
(PARI) s=[]; forprime(p=2, 25000, if(isprime(p^2+4) && isprime(p^2+10), s=concat(s, p))); s \\ Colin Barker, Feb 15 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Feb 15 2014
STATUS
approved