OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
a(4)=107 because 11^2 - 13 -1=107.
MATHEMATICA
Select[Table[(Prime[n]^2-Prime[n+1])-1, {n, 700}], PrimeQ[#]&] (* Vincenzo Librandi, Jul 17 2012 *)
Select[#[[1]]^2-#[[2]]-1&/@Partition[Prime[Range[100]], 2, 1], PrimeQ] (* Harvey P. Dale, Jul 07 2024 *)
PROG
(PARI) m=85; for(n=1, m, if(isprime(k=prime(n)^2-prime(n+1)-1), print1(k, ", "))) \\ Klaus Brockhaus, Sep 06 2004
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Giovanni Teofilatto, Sep 05 2004
EXTENSIONS
More terms from Klaus Brockhaus, Sep 06 2004
STATUS
approved