OFFSET
1,1
LINKS
Daniel Starodubtsev, Table of n, a(n) for n = 1..10000
EXAMPLE
p=7: 7^3 - (7-1)^2 = 307 is prime and 7^3 + (7-1)^2 = 379 is prime, hence 7 is in the sequence.
MATHEMATICA
Select[Prime[Range[900]], PrimeQ[ #^3-(#-1)^2]&&PrimeQ[ #^3+(#-1)^2]&]
PROG
(Magma) [ n: n in PrimesUpTo(40000) | IsPrime(n^3-(n-1)^2) and IsPrime(n^3 +(n-1)^2) ]; // Vincenzo Librandi, Nov 24 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 21 2008
EXTENSIONS
More terms from Vincenzo Librandi, Mar 26 2010
STATUS
approved