OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
37 is in the sequence because both 37 and (37^2 + 1)/10 = 137 are primes. [Emeric Deutsch, Jan 21 2009]
MAPLE
a := proc (n) if isprime(n) = true and type((1/10)*n^2+1/10, integer) = true and isprime((1/10)*n^2+1/10) = true then n else end if end proc: seq(a(n), n = 2 .. 1700); # Emeric Deutsch, Jan 21 2009
MATHEMATICA
Select[Prime[Range[200]], PrimeQ[(#^2 + 1)/10] &] (* Vincenzo Librandi, Oct 15 2012 *)
PROG
(Magma) [p: p in PrimesInInterval(7, 2500) | IsPrime((p^2 + 1) div 10)]; // Vincenzo Librandi, Oct 15 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 09 2009
EXTENSIONS
Corrected and extended by Emeric Deutsch, Jan 21 2009
STATUS
approved