OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
5^5 - 5^3 - 1 = 2999, 5^5 - 5^3 + 1 = 3001, and 2999 and 3001 are twin primes, so 5 is in the sequence.
MATHEMATICA
lst={}; Do[If[PrimeQ[n^5-n^3-1]&&PrimeQ[n^5-n^3+1], AppendTo[lst, n]], {n, 10^3}]; lst (* Vladimir Joseph Stephan Orlovsky, Aug 14 2008 *)
PROG
(Magma) [k: k in [1..4800]| IsPrime(a-1) and IsPrime(a+1) where a is k^5 - k^3]; // Marius A. Burtea, Jan 01 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Nov 16 2005
EXTENSIONS
3 missing terms added by Amiram Eldar, Jan 01 2020
STATUS
approved