OFFSET
1,1
EXAMPLE
3^3 +- 4^2 -> (11, 43) (both primes);
167^3 +- 168^2 = 4657463 +- 28224 -> (4629239, 4685687) (both primes).
MATHEMATICA
Select[Prime[Range[900]], PrimeQ[ #^3-(#+1)^2]&&PrimeQ[ #^3+(#+1)^2]&]
PROG
(Magma) [n: n in [0..500] | IsPrime(n) and 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