OFFSET
1,1
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
EXAMPLE
4^2 - 3 = 13 and 4^2 + 3 = 19 are both primes, so 4 is in the sequence.
MATHEMATICA
Select[Range[1500], PrimeQ[#^2 - 3] && PrimeQ[#^2 + 3] &] (* Vincenzo Librandi, Oct 12 2014 *)
PROG
(Magma) [n: n in [1..1400] | IsPrime(n^2-3) and IsPrime(n^2+3)]; // Vincenzo Librandi, Oct 12 2014
(PARI) is(n) = isprime(n^2-3) && isprime(n^2+3); \\ Altug Alkan, Sep 01 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jan 03 2009
EXTENSIONS
Incorrect term 0 removed and Mma edited by Zak Seidov, Oct 12 2014
STATUS
approved