OFFSET
1,2
COMMENTS
LINKS
Jens Kruse Andersen, Table of n, a(n) for n = 1..10000
MAPLE
A247271:=n->`if`(isprime(n^2+1) and isprime(2*n^2+1), n, NULL): seq(A247271(n), n=1..10^4); # Wesley Ivan Hurt, Sep 12 2014
MATHEMATICA
lst={}; Do[p=n^2+1; q=2n^2+1; If[PrimeQ[p] && PrimeQ[q], AppendTo[lst, n]], {n, 5000}]; lst
PROG
(PARI)
for(n=1, 10^4, if(isprime(n^2+1)&&isprime(2*n^2+1), print1(n, ", "))) \\ Derek Orr, Sep 11 2014
(Magma) [n: n in [0..5000] | IsPrime(n^2+1) and IsPrime(2*n^2+1)]; // Vincenzo Librandi, Sep 14 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michel Lagneau, Sep 11 2014
STATUS
approved