OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
For p=2, 5p^2 - p + 1 = 19 (a prime);
for p=107, 5p^2 - p + 1 = 57139 (a prime);
for p=199, 5p^2 - p + 1 = 197807 (a prime).
MAPLE
a:= proc (n) if isprime(n) and isprime(5*n^2-n+1) then n end if end proc: seq(a(n), n = 2 .. 3000); # Emeric Deutsch, Jan 20 2009
MATHEMATICA
Select[Prime[Range[1000]], PrimeQ[(5#^2 - # + 1)] &] (* Vincenzo Librandi, Oct 14 2012 *)
PROG
(Magma) [p: p in PrimesUpTo(3000)|IsPrime(5*p^2 - p + 1)]; // Vincenzo Librandi, Oct 14 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 09 2009
EXTENSIONS
Extended by Emeric Deutsch, Jan 20 2009
STATUS
approved